diff --git a/config/func.inc.php b/config/func.inc.php index 1570b3fb4..9430d113b 100644 --- a/config/func.inc.php +++ b/config/func.inc.php @@ -515,7 +515,7 @@ **/ function getScriptPath() { static $url = null; - if($url == null) $url = preg_replace('/index.php$/i','',str_replace('\\','/',$_SERVER['SCRIPT_NAME'])); + if($url == null) $url = preg_replace('/\/tools\/([a-z\_]+)/i','',preg_replace('/index.php$/i','',str_replace('\\','/',$_SERVER['SCRIPT_NAME']))); return $url; }