From 7a385fe4c6ad406fd338abf4c639c12686d7e64e Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 15 Mar 2018 13:14:00 +0800 Subject: [PATCH] AssetTrait.php --- AssetTrait.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AssetTrait.php b/AssetTrait.php index cadc2cce..b74271ee 100644 --- a/AssetTrait.php +++ b/AssetTrait.php @@ -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); -- 2.39.2