mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 21:34:42 +03:00
Use 500 as default weight for plugins assets
This commit is contained in:
parent
71d2b234c6
commit
1a82e11b5e
@ -266,11 +266,11 @@ class AssetManager implements AssetManagerInterface
|
|||||||
$normalized_assets->addAsset(
|
$normalized_assets->addAsset(
|
||||||
$asset,
|
$asset,
|
||||||
AssetManagerInterface::RELATIVE_URL,
|
AssetManagerInterface::RELATIVE_URL,
|
||||||
0
|
500
|
||||||
);
|
);
|
||||||
} elseif (is_array($asset) && !empty($asset['type']) && !empty($asset['content'])) {
|
} elseif (is_array($asset) && !empty($asset['type']) && !empty($asset['content'])) {
|
||||||
// Weight is optional so we have to make sure it is in place.
|
// Weight is optional so we have to make sure it is in place.
|
||||||
$asset += array('weight' => 0);
|
$asset += array('weight' => 500);
|
||||||
$normalized_assets->addAsset(
|
$normalized_assets->addAsset(
|
||||||
$asset['content'],
|
$asset['content'],
|
||||||
$asset['type'],
|
$asset['type'],
|
||||||
|
Loading…
Reference in New Issue
Block a user