aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-06-24 21:22:13 +0000
committerrvelices <rv-github@modusoptimus.com>2006-06-24 21:22:13 +0000
commit1858e243c337cbf1bc70bed1b96144fd22b15c60 (patch)
treed92f33a18b13c071f2a583e17dfc19d3c14e9d82 /include
parent856882fdbb9b9353c6d14f91129c670f837dd6c0 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/functions_url.inc.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/functions_url.inc.php b/include/functions_url.inc.php
index 9eb424651..46a9c8627 100644
--- a/include/functions_url.inc.php
+++ b/include/functions_url.inc.php
@@ -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);
}
}