mirror of
https://github.com/getgrav/grav.git
synced 2026-02-05 06:10:13 +01:00
Blueprints: Fix for page blueprints
This commit is contained in:
@@ -87,7 +87,7 @@ abstract class BlueprintForm implements \ArrayAccess, ExportInterface
|
||||
* @param array $overrides
|
||||
* @return $this
|
||||
*/
|
||||
public function setOverrides(array $overrides)
|
||||
public function setOverrides($overrides)
|
||||
{
|
||||
$this->overrides = $overrides;
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ class Blueprints
|
||||
{
|
||||
$blueprint = new Blueprint($name);
|
||||
|
||||
if (is_array($this->search)) {
|
||||
if (is_array($this->search) || is_object($this->search)) {
|
||||
$blueprint->setOverrides($this->search);
|
||||
} else {
|
||||
$blueprint->setContext($this->search);
|
||||
|
||||
Reference in New Issue
Block a user