mirror of
https://github.com/getgrav/grav.git
synced 2026-05-07 06:06:16 +02:00
Ensure simple second argument for priority is also supported in multi-collections with params (fixes #3358)
This commit is contained in:
@@ -168,6 +168,9 @@ class Assets extends PropertyObject
|
||||
array_shift($args);
|
||||
if (is_array($location)) {
|
||||
$args = array_shift($args);
|
||||
if (is_numeric($args)) {
|
||||
$args = [ 'priority' => $args ];
|
||||
}
|
||||
$args = [array_replace_recursive([], $location, $args)];
|
||||
$location = $index;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user