mirror of
https://github.com/e107inc/e107.git
synced 2025-08-14 10:34:23 +02:00
Use static URLs in compressed CSS when enabled.
This commit is contained in:
@@ -2623,15 +2623,23 @@ class e_parse extends e_parser
|
||||
|
||||
|
||||
/**
|
||||
* @todo Move to e107_class ?
|
||||
* @param string $path - absolute path
|
||||
* @return string - static path.
|
||||
*/
|
||||
public function staticUrl($path=null)
|
||||
public function staticUrl($path=null, $opts=array())
|
||||
{
|
||||
if(!defined('e_HTTP_STATIC') || deftrue('e_ADMIN_AREA'))
|
||||
{
|
||||
// e107::getDebug()->log("e_HTTP_STATIC not defined");
|
||||
return ($path === null) ? e_HTTP : $path;
|
||||
if($path === null)
|
||||
{
|
||||
return !empty($opts['full']) ? SITEURL : e_HTTP;
|
||||
}
|
||||
else
|
||||
{
|
||||
return $path;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user