1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +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

@@ -1606,6 +1606,8 @@ class e_jsmanager
$basePath = dirname($path)."/";
$tp = e107::getParser();
foreach($match[1] as $k=>$v)
{
if(strpos($v,'data:') === 0 || strpos($v,'http') === 0)
@@ -1614,10 +1616,9 @@ class e_jsmanager
continue;
}
$http = $tp->staticUrl(null, array('full'=>1)); // returns SITEURL or Static URL if enabled.
$path = $this->normalizePath($basePath.$v);
$dir = "url(".SITEURL.$path.")"; // relative to e_WEB_ABS."cache/";
// print_a($dir);
$dir = "url(".$http.$path.")";
$newpath[$k] = $dir;
}