From bac0f5b9845a520047014e18958901a75e1e9832 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Mon, 21 Apr 2008 01:32:01 +0000 Subject: [PATCH] Bug in _meta['base-dir'] when website root sits in docroot. --- code/functions.php | 2 ++ 1 file changed, 2 insertions(+) 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() {