mirror of
https://github.com/gantry/gantry5.git
synced 2026-08-19 01:15:04 -05:00
Fixed wrong ordering of custom CSS/JS assets
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
1. [Common](#common)
|
||||
1. [](#bugfix)
|
||||
- Fixed a bug in `|html` filter
|
||||
- Fixed wrong ordering of custom CSS/JS assets
|
||||
2. [Joomla](#joomla)
|
||||
3. [](#bugfix)
|
||||
- Fixed all `<script>` tags being corrupted in Windows due to badly behaving `uniqid()` function
|
||||
|
||||
@@ -408,7 +408,7 @@ class HtmlBlock extends ContentBlock implements HtmlBlockInterface
|
||||
uasort(
|
||||
$items,
|
||||
function ($a, $b) {
|
||||
return ($a[':priority'] == $b[':priority']) ? $a[':order'] - $b[':order'] : $a[':priority'] - $b[':priority'];
|
||||
return ($a[':priority'] == $b[':priority']) ? $a[':order'] - $b[':order'] : $b[':priority'] - $a[':priority'];
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user