From 8f5a30cc508a22da02b86ce68666effdd76abe0e Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Mon, 29 Feb 2016 13:14:16 +0200 Subject: [PATCH] Blueprints: Fix for page blueprints --- system/src/Grav/Common/Data/BlueprintForm.php | 2 +- system/src/Grav/Common/Data/Blueprints.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/system/src/Grav/Common/Data/BlueprintForm.php b/system/src/Grav/Common/Data/BlueprintForm.php index 9927ef782..236603519 100644 --- a/system/src/Grav/Common/Data/BlueprintForm.php +++ b/system/src/Grav/Common/Data/BlueprintForm.php @@ -87,7 +87,7 @@ abstract class BlueprintForm implements \ArrayAccess, ExportInterface * @param array $overrides * @return $this */ - public function setOverrides(array $overrides) + public function setOverrides($overrides) { $this->overrides = $overrides; diff --git a/system/src/Grav/Common/Data/Blueprints.php b/system/src/Grav/Common/Data/Blueprints.php index 4f8c67ae5..af9e76044 100644 --- a/system/src/Grav/Common/Data/Blueprints.php +++ b/system/src/Grav/Common/Data/Blueprints.php @@ -86,7 +86,7 @@ class Blueprints { $blueprint = new Blueprint($name); - if (is_array($this->search)) { + if (is_array($this->search) || is_object($this->search)) { $blueprint->setOverrides($this->search); } else { $blueprint->setContext($this->search);