diff --git a/config/func.inc.php b/config/func.inc.php index cf34e214d..ae687f46f 100644 --- a/config/func.inc.php +++ b/config/func.inc.php @@ -474,7 +474,7 @@ function getScriptPath() { static $url = null; if($url === null) { - $document_root = str_replace('\\','/',$_SERVER['DOCUMENT_ROOT']); + $document_root = str_replace('\\','/',realpath($_SERVER['DOCUMENT_ROOT'])); $file = str_replace('\\','/',__FILE__); $url = preg_replace('/index.php/i','',str_replace('config/func.inc.php','',str_replace($document_root, '', $file))); }