mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-08 06:14:54 +02:00
merge -r1402 from branch-1_6 into trunk
bug correction in get_root_url ('./../' was returning '')
git-svn-id: http://piwigo.org/svn/trunk@1403 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user