AssetTrait.php
authorAlan Knowles <alan@roojs.com>
Thu, 14 Jan 2016 10:11:34 +0000 (18:11 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 14 Jan 2016 10:11:34 +0000 (18:11 +0800)
AssetTrait.php

index 75fd7b3..a35005b 100644 (file)
@@ -110,9 +110,11 @@ trait Pman_Core_AssetTrait {
         } else {
          //   echo "<!-- file already exists: {$basedir}/{$output} -->\n";
         }
+        
+        $asset = $ff->project == 'Pman' ? '/Pman/Asset/js' : '/Asset/js/';
         //$this->arrayToJsInclude(  $files);
         $this->assetArrayToHtml(  array(
-            $this->baseURL.'/Asset/js/'. $output,
+            $this->baseURL.$asset. $output,
           
         ), 'js');