JsCompile.php
authorAlan Knowles <alan@akbkhome.com>
Thu, 28 Jul 2011 14:37:44 +0000 (22:37 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 28 Jul 2011 14:37:44 +0000 (22:37 +0800)
JsCompile.php

index 58e5639..cad5951 100644 (file)
@@ -102,11 +102,11 @@ class Pman_Core_JsCompile  extends Pman
         
         $output = md5(serialize($arfiles)) .'.js';
         
-        if (!file_exists($basedir.'/_cache_/'.$output)) {
+        if ( $output_url && !file_exists($basedir.'/_cache_/'.$output)) {
             $this->pack($arfiles,$basedir.'/_cache_/'.$output);
         }
         
-        if (file_exists($basedir.'/_cache_/'.$output)) {
+        if ($output_url && file_exists($basedir.'/_cache_/'.$output)) {
             
             echo '<script type="text/javascript" src="'.$output_url.'/_cache_/'. $output.'"></script>';
             return;