From 921685ff88054d7ec0bef5bdc26be402efbc2d6e Mon Sep 17 00:00:00 2001 From: Gert Date: Fri, 15 May 2015 17:32:21 +0200 Subject: [PATCH] fix blueprint type changing when extends --- system/src/Grav/Common/Data/Blueprints.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/src/Grav/Common/Data/Blueprints.php b/system/src/Grav/Common/Data/Blueprints.php index 84d9ce486..a024c87f7 100644 --- a/system/src/Grav/Common/Data/Blueprints.php +++ b/system/src/Grav/Common/Data/Blueprints.php @@ -64,14 +64,14 @@ class Blueprints } foreach ($extends as $extendConfig) { - $type = !is_string($extendConfig) ? empty($extendConfig['type']) ? false : $extendConfig['type'] : $extendConfig; + $extendType = !is_string($extendConfig) ? empty($extendConfig['type']) ? false : $extendConfig['type'] : $extendConfig; - if (!$type) { + if (!$extendType) { continue; } $context = is_string($extendConfig) || empty($extendConfig['context']) ? $this : new self(self::getGrav()['locator']->findResource($extendConfig['context'])); - $blueprint->extend($context->get($type)); + $blueprint->extend($context->get($extendType)); } }