mirror of
https://github.com/e107inc/e107.git
synced 2025-08-09 08:06:38 +02:00
When static URL is not in use, use absolute URL for js/css cached image paths etc.
This commit is contained in:
@@ -2713,7 +2713,8 @@ class e_parse extends e_parser
|
||||
|
||||
/**
|
||||
* @todo Move to e107_class ?
|
||||
* @param string $path - absolute path or e107 path {e_PLUGIN} etc.
|
||||
* @param string $path - absolute path or e107 path {e_PLUGIN} etc.
|
||||
* @param array $opts - when $opts['full'] is true, a full siteurl will be used instead of an absolute path. (unless static url is found)
|
||||
* @return string - full path or static path.
|
||||
*/
|
||||
public function staticUrl($path=null, $opts=array())
|
||||
@@ -2727,7 +2728,7 @@ class e_parse extends e_parser
|
||||
}
|
||||
else
|
||||
{
|
||||
return self::replaceConstants($path, 'full');
|
||||
return !empty($opts['full']) ? self::replaceConstants($path, 'full') : self::replaceConstants($path, 'abs'); // self::replaceConstants($path, 'full');
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user