From ef9f2c77dd0df8f09781c81ab427d6f5ead9663e Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Thu, 10 Dec 2015 10:24:21 +0200 Subject: [PATCH] Minor fix in Page class --- system/src/Grav/Common/Page/Page.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/system/src/Grav/Common/Page/Page.php b/system/src/Grav/Common/Page/Page.php index 1aeb6a7f6..dfbdbc521 100644 --- a/system/src/Grav/Common/Page/Page.php +++ b/system/src/Grav/Common/Page/Page.php @@ -381,7 +381,7 @@ class Page */ public function modifyHeader($key, $value) { - $this->header->$key = $value; + $this->header->{$key} = $value; } /** @@ -392,8 +392,7 @@ class Page */ public function summary($size = null) { - /** @var Config $config */ - $config = self::getGrav()['config']->get('site.summary'); + $config = (array) self::getGrav()['config']->get('site.summary'); if (isset($this->header->summary)) { $config = array_merge($config, $this->header->summary); } @@ -826,7 +825,7 @@ class Page $blueprints = $this->blueprints(); $values = $blueprints->filter($this->toArray()); if ($values && isset($values['header'])) { - $this->header($values['header']); + $this->header($values['header']); } }