mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Corrected CSS url paths.
This commit is contained in:
@@ -1448,15 +1448,19 @@ class e_jsmanager
|
|||||||
return $this->compress($content, 'css');
|
return $this->compress($content, 'css');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$path = str_replace("../",'',$path);
|
||||||
|
|
||||||
|
$basePath = SITEURL.dirname($path)."/";
|
||||||
|
|
||||||
foreach($match[1] as $k=>$v)
|
foreach($match[1] as $k=>$v)
|
||||||
{
|
{
|
||||||
if(substr($v,5) == 'data:')
|
if(substr($v,5) == 'data:' || substr($v,4) == 'http')
|
||||||
{
|
{
|
||||||
unset($match[0][$k]);
|
unset($match[0][$k]);
|
||||||
continue;
|
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;
|
$newpath[$k] = $dir;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user