From e86d03f02cddcbf59ef54aa0a33bea2a85cb7994 Mon Sep 17 00:00:00 2001 From: Robin Date: Wed, 17 Mar 2010 22:21:01 +0100 Subject: [PATCH] fixed bug when checking if a navigation item made by a plugin is selected --- inc/lib_base.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/lib_base.php b/inc/lib_base.php index 2516361d4d..2da7713db6 100755 --- a/inc/lib_base.php +++ b/inc/lib_base.php @@ -69,7 +69,7 @@ require_once('lib_log.php'); require_once('lib_config.php'); // load plugins -$CONFIG_LOADPLUGINS=''; +$CONFIG_LOADPLUGINS='music'; $plugins=explode(' ',$CONFIG_LOADPLUGINS); if(isset($plugins[0]['url'])) foreach($plugins as $plugin) require_once('plugins/'.$plugin.'/lib_'.$plugin.'.php'); @@ -185,12 +185,13 @@ class OC_UTIL { */ public static function shownavigation(){ global $WEBROOT; + global $SERVERROOT; echo(''); echo(''); if($_SERVER['SCRIPT_NAME']==$WEBROOT.'/index.php') echo(''); else echo(''); foreach(OC_UTIL::$NAVIGATION as $NAVI) { - if($_SERVER['SCRIPT_NAME']==$SERVERROOT.$WEBROOT.$NAVI['url']) echo(''); else echo(''); + if(dirname($_SERVER['SCRIPT_NAME'])==$WEBROOT.$NAVI['url']) echo(''); else echo(''); } if($_SERVER['SCRIPT_NAME']==$WEBROOT.'/log/index.php') echo(''); else echo('');