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

Fixes for JS/CSS Cache. Correct file-count displayed in admin. minify code on output.

This commit is contained in:
Cameron
2016-02-05 16:26:33 -08:00
parent a1c4707bcf
commit eb3cb3b287
3 changed files with 30 additions and 12 deletions

View File

@@ -326,10 +326,16 @@ class ecache {
$mask = ($mask == null) ? '.*\.cache\.bin' : $mask;
}
if($type == 'jscss')
if($type == 'js')
{
$path = e_WEB."cache/";
$mask = ($mask == null) ? '.*(\.js|\.css)$' : $mask;
$mask = ($mask == null) ? '.*\.js' : $mask;
}
if($type == 'css')
{
$path = e_WEB."cache/";
$mask = ($mask == null) ? '.*\.css' : $mask;
}
if((null == $path) || (null == $mask))