projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45dce3c
)
sync
author
Alan Knowles
<alan@roojs.com>
Thu, 22 Nov 2018 06:38:37 +0000
(14:38 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 22 Nov 2018 06:38:37 +0000
(14:38 +0800)
AssetTrait.php
patch
|
blob
|
history
diff --git
a/AssetTrait.php
b/AssetTrait.php
index
1d186aa
..
a0e626f
100644
(file)
--- 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;
}