Skip to content

Commit

Permalink
Fix bug cannot minify css
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhlh committed Jun 20, 2014
1 parent 0f5deac commit fcb9c7e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source/plg_system_t3/includes/core/minify.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ public static function optimizecss($tpl)
}

$cssgroup['groupname'] = implode('', $groupname);
$cssgroup['media'] = $media;
$cssgroups[] = $cssgroup;
}

Expand Down Expand Up @@ -320,14 +321,12 @@ public static function optimizecss($tpl)
$output = array();
foreach ($cssgroups as $cssgroup) {
if(isset($cssgroup['ignore'])){

unset($cssgroup['ignore']);
unset($cssgroup['groupname']);
unset($cssgroup['media']);
foreach ($cssgroup as $furl => $fsheet) {
$output[$furl] = $fsheet;
}

} else {
$media = $cssgroup['media'];
$groupname = 'css-' . substr(md5($cssgroup['groupname']), 0, 5) . '.css';
Expand All @@ -344,7 +343,6 @@ public static function optimizecss($tpl)
}

if($rebuild){

$cssdata = array();
foreach ($cssgroup as $furl => $fsheet) {
$cssdata[] = "\n\n/*===============================";
Expand Down

0 comments on commit fcb9c7e

Please sign in to comment.