Skip to content

Commit

Permalink
consolidation#127 BC fix to support Jsqueeze 1.x and 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Krämer committed Mar 12, 2015
1 parent 49a91e0 commit a54bb44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Task/Assets/Minify.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,11 @@ protected function getMinifiedText()
break;

case 'js':
$jsqueeze = new \JSqueeze();
if (class_exists('\JSqueeze')) {
$jsqueeze = new \JSqueeze();
} else {
$jsqueeze = new \Patchwork\JSqueeze();
}
return $jsqueeze->squeeze(
$this->text,
$this->squeezeOptions['singleLine'],
Expand Down

0 comments on commit a54bb44

Please sign in to comment.