Bug in _meta['base-dir'] when website root sits in docroot.

This commit is contained in:
2008-04-21 01:32:01 +00:00
parent 46cd0f0c98
commit bac0f5b984

View File

@@ -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() {