AssetTrait.php
authorAlan Knowles <alan@roojs.com>
Thu, 15 Mar 2018 05:14:00 +0000 (13:14 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 15 Mar 2018 05:14:00 +0000 (13:14 +0800)
AssetTrait.php

index cadc2cc..b74271e 100644 (file)
@@ -54,6 +54,9 @@ trait Pman_Core_AssetTrait {
         $mtime = 0;
         foreach($ar as $fn) {
             $f = basename($fn);
+            if (!preg_match('/\.js$/', $f)) {
+                continue;
+            }
             // got the 'module file..'
             $mtime = filemtime($dir . '/'. $f);
             $maxtime = max($mtime, $maxtime);