mirror of
https://github.com/getgrav/grav.git
synced 2026-03-04 19:41:36 +01:00
fix blueprint type changing when extends
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user