Use 500 as default weight for plugins assets

This commit is contained in:
Dmitriy Simushev 2014-10-14 10:23:40 +00:00
parent 71d2b234c6
commit 1a82e11b5e

View File

@ -266,11 +266,11 @@ class AssetManager implements AssetManagerInterface
$normalized_assets->addAsset(
$asset,
AssetManagerInterface::RELATIVE_URL,
0
500
);
} elseif (is_array($asset) && !empty($asset['type']) && !empty($asset['content'])) {
// Weight is optional so we have to make sure it is in place.
$asset += array('weight' => 0);
$asset += array('weight' => 500);
$normalized_assets->addAsset(
$asset['content'],
$asset['type'],