1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Corrected CSS url paths.

This commit is contained in:
Cameron
2016-02-06 18:32:48 -08:00
parent 87ce418e14
commit 5daaaedf99

View File

@@ -1448,15 +1448,19 @@ class e_jsmanager
return $this->compress($content, 'css');
}
$path = str_replace("../",'',$path);
$basePath = SITEURL.dirname($path)."/";
foreach($match[1] as $k=>$v)
{
if(substr($v,5) == 'data:')
if(substr($v,5) == 'data:' || substr($v,4) == 'http')
{
unset($match[0][$k]);
continue;
}
$dir = "url(../../".dirname($path)."/".$v.")"; // relative to e_WEB_ABS."cache/";
$dir = "url(".$basePath.$v.")"; // relative to e_WEB_ABS."cache/";
$newpath[$k] = $dir;
}