1
0
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:
Cameron
2018-01-26 18:12:12 -08:00
parent 8799ccab75
commit d0d4bcc1cd
5 changed files with 18 additions and 9 deletions

View File

@@ -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;
}
}