[kde-edu]: www/media/includes/classes

Ben Cooksley sourtooth at gmail.com
Fri Feb 19 08:37:54 CET 2010


SVN commit 1092517 by bcooksley:

Fix menu system active status detection.
CCMAIL: kde-edu at kde.org
CCMAIL: kde-www at kde.org

 M  +6 -1      class_menu.inc  


--- trunk/www/media/includes/classes/class_menu.inc #1092516:1092517
@@ -128,7 +128,12 @@
       $this->id = strtolower(preg_replace("([^0-9a-zA-Z])", "", $name));
     else
       $this->id = $id;
-    $this->active = strcmp ($link, "/".$current_relativeurl) == 0;
+
+    if( $link != "/" ) {
+      $this->active = strcmp ($link, "/".$current_relativeurl) == 0;
+    } else {
+      $this->active = false;
+    }
   }
 
   function appendLink ($name, $link, $relative_link = true, $is_dir = false, $icon = false, $new = false)


More information about the kde-edu mailing list