mirror of
https://github.com/getgrav/grav.git
synced 2026-05-07 10:06:26 +02:00
Minor fix in Page class
This commit is contained in:
@@ -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']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user