bug correction in get_root_url ('./../' was returning '')

git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1402 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices
2006-06-24 21:22:13 +00:00
parent 856882fdbb
commit 1858e243c3
+4 -4
View File
@@ -37,17 +37,17 @@ function get_root_url()
{
$root_url = $page['root_path'];
}
else
else
{
$root_url = PHPWG_ROOT_PATH;
}
if ( dirname($root_url)!='.' )
{
return $root_url;
}
else
}
else
{
return '';
return substr($root_url, 2);
}
}