projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b81f7b7
)
AssetTrait.php
author
Alan Knowles
<alan@roojs.com>
Mon, 18 Jan 2016 06:21:10 +0000
(14:21 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 18 Jan 2016 06:21:10 +0000
(14:21 +0800)
AssetTrait.php
patch
|
blob
|
history
diff --git
a/AssetTrait.php
b/AssetTrait.php
index
24a2344
..
4a96a48
100644
(file)
--- a/
AssetTrait.php
+++ b/
AssetTrait.php
@@
-224,11
+224,13
@@
trait Pman_Core_AssetTrait {
}
}
- // no sorting???
- //$lsort = create_function('$a,$b','return strlen($a) > strlen($b) ? 1 : -1;');
- //usort($files, $lsort);
+ // yes sort... if includes are used - they have to be in the first file...
+ $lsort = create_function('$a,$b','return strlen($a) > strlen($b) ? 1 : -1;');
+ usort($files, $lsort);
+
+
if (!empty($this->bootLoader->isDev) && !empty($_REQUEST['isDev'])) {
echo "<!-- CSS compile turned off (isDev on) -->\n";
$this->assetArrayToHtml($files,'css');
if (!empty($this->bootLoader->isDev) && !empty($_REQUEST['isDev'])) {
echo "<!-- CSS compile turned off (isDev on) -->\n";
$this->assetArrayToHtml($files,'css');