mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
#423 Fixed issues with application root URL = f(mode CLI, modules, web server techno, etc.)
SVN:trunk[1304]
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user