Minor fix in Page class

This commit is contained in:
Matias Griese
2015-12-10 10:24:21 +02:00
parent 822292f541
commit ef9f2c77dd

View File

@@ -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']);
}
}