Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Dang Quoc Dat authored Aug 18, 2017
1 parent 7012672 commit 718e4bd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/plg_system_t3/includes/core/minify.php
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,12 @@ public static function optimizejs($tpl){

//already minify?
if(!preg_match('@.*\.min\.js.*@', $furl)){
$jsmin = self::minifyJs($fsheet['data']);
try {
$jsmin = self::minifyJs($fsheet['data']);
} catch (Exception $e) {
// error - ignore minify
$jsmin = $fsheet['data'];
}
//$jsmin = T3Path::updateUrl($jsmin, T3Path::relativePath($outputurl, dirname($furl)));
}

Expand Down

0 comments on commit 718e4bd

Please sign in to comment.