mirror of
https://github.com/getgrav/grav.git
synced 2026-02-21 14:08:02 +01:00
Merge pull request #144 from Sommerregen/bugfix/get-nested-default-plugin-configurations
Fix to merge nested page options with default plugin configurations
This commit is contained in:
@@ -140,7 +140,7 @@ class Plugin implements EventSubscriberInterface
|
||||
|
||||
// Get default plugin configurations and retrieve page header configuration
|
||||
if (isset($page->header()->$class_name)) {
|
||||
$header = array_merge($defaults, $page->header()->$class_name);
|
||||
$header = array_replace_recursive($defaults, $page->header()->$class_name);
|
||||
} else {
|
||||
$header = $defaults;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user