diff --git a/system/src/Grav/Common/Plugin.php b/system/src/Grav/Common/Plugin.php index be6f3aa25..40ae44bbe 100644 --- a/system/src/Grav/Common/Plugin.php +++ b/system/src/Grav/Common/Plugin.php @@ -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; }