[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: www/media/includes/classes
From: Ben Cooksley <sourtooth () gmail ! com>
Date: 2010-02-19 7:37:54
Message-ID: 1266565074.684574.24270.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1092517 by bcooksley:
Fix menu system active status detection.
CCMAIL: kde-edu@kde.org
CCMAIL: kde-www@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)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic