#423 Fixed issues with application root URL = f(mode CLI, modules, web server techno, etc.)

SVN:trunk[1304]
This commit is contained in:
Romain Quetiez
2011-06-28 10:30:03 +00:00
parent 1964658584
commit c4b7497770
12 changed files with 236 additions and 103 deletions

View File

@@ -97,10 +97,8 @@ function GetRelatedObjectsAsXml(DBObject $oObj, $sRelationName, &$oLinks, &$oXml
function BuildIconPath($sIconPath)
{
$sFullURL = utils::GetAbsoluteURL(false, false);
$iLastSlashPos = strrpos($sFullURL, '/');
$sFullURLPath = substr($sFullURL, 0, 1 + $iLastSlashPos);
return $sFullURLPath.$sIconPath;
$sFullURL = utils::GetAbsoluteUrlAppRoot(false, false);
return $sFullURL.'pages/'.$sIconPath;
}
require_once(APPROOT.'/application/startup.inc.php');