JsCompile.php
authorAlan Knowles <alan@akbkhome.com>
Thu, 28 Feb 2013 16:06:47 +0000 (00:06 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 28 Feb 2013 16:06:47 +0000 (00:06 +0800)
JsCompile.php

index 81bac8d..80a62e1 100644 (file)
@@ -209,7 +209,10 @@ class Pman_Core_JsCompile  extends Pman
             mkdir(dirname($output), 0755, true);
         }
         $eoutput = escapeshellarg($output);
-        $cmd = "$seed {$o['cssminify']}  $eoutput " . implode($ofiles, ' ');
+        $cmd = $seed ?
+            ("$seed {$o['cssminify']}  $eoutput " . implode($ofiles, ' ')) :
+            ("$gjs {$o['cssminify']}  $eoutput " . implode($ofiles, ' ')) :
+            ;
         //echo "<PRE>$cmd\n"; echo `$cmd`; exit;
         `$cmd`;