diff --git a/code/functions.php b/code/functions.php index eba209d..9db521f 100644 --- a/code/functions.php +++ b/code/functions.php @@ -37,6 +37,8 @@ static $Dir; if (!isset($Dir)) $Dir = dirname($_SERVER['SCRIPT_NAME']); + // Doesnt cope well with being at the site root + if ($Dir == "/") $Dir = ""; return $Dir; } function get_fs_base_dir() {