Permalink
Browse files

Added conditional to have css compression behave as javascript if ext…

…ension exists in minifiedExtensionFlags or forceCompress is enabled.
  • Loading branch information...
Andrewpk committed Jun 2, 2012
1 parent 1b8f516 commit 87cf3a66e513126b5915dc959d6ce25ad9979e6d
Showing with 1 addition and 1 deletion.
  1. +1 −1 extensions/EScriptBoost/EAssetManagerBoost.php
@@ -164,7 +164,7 @@ public function copyFile($src, $dstFile)
$dstFile, EScriptBoost::minifyJs(@file_get_contents($src), EScriptBoost::JS_MIN_PLUS));
@touch($dstFile, @filemtime($src));
}
- else if ($ext == 'CSS')
+ else if (($ext == 'CSS' && !$this->strpos_arr($dstFile, $this->minifiedExtensionFlags)) || $this->forceCompress )
{
Yii::trace('copyFile CSS Compressing: ' . $src, 'EAssetManagerBoost');

0 comments on commit 87cf3a6

Please sign in to comment.