make get_base_href work better on windows

git-svn-id: file:///home/shish/svn/shimmie2/trunk@678 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2008-01-02 21:46:14 +00:00
parent 1f1987131d
commit bcca76969e

View file

@ -213,7 +213,7 @@ function get_base_href() {
}
assert(!empty($ok_var));
$dir = dirname($ok_var);
if($dir == "/") $dir = "";
if($dir == "/" || $dir == "\\") $dir = "";
return $dir;
}