From 5051b151451cba24a8e0153ad7d999a203b18979 Mon Sep 17 00:00:00 2001 From: Sommerregen Date: Sun, 15 Feb 2015 21:20:20 +0100 Subject: [PATCH] Fix to merge nested page options with default plugin configurations --- system/src/Grav/Common/Plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Plugin.php b/system/src/Grav/Common/Plugin.php index ea000c247..492ee76a7 100644 --- a/system/src/Grav/Common/Plugin.php +++ b/system/src/Grav/Common/Plugin.php @@ -141,7 +141,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; }