From: Alan Knowles Date: Thu, 22 Nov 2018 06:38:37 +0000 (+0800) Subject: sync X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=785f8a3384d3843c69cd837d47730cf79e89b29c sync --- diff --git a/AssetTrait.php b/AssetTrait.php index 1d186aad..a0e626f6 100644 --- a/AssetTrait.php +++ b/AssetTrait.php @@ -32,7 +32,9 @@ trait Pman_Core_AssetTrait { $ar = array_merge($ar , glob($dir . '/'. $f)); continue; } - + if (!preg_match('/\.js$/', $f)) { + $f .= ".js"; + } $ar[] = $dir .'/'. $f; }