From bbddb0a036e5697abdf13b2c0d3eb5bcb3c02601 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Tue, 30 Mar 2021 11:53:27 -0600 Subject: [PATCH] system blueprints not getting scanned. Fixes #3296 --- CHANGELOG.md | 1 + system/src/Grav/Common/Page/Types.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77ae84781..cbc058537 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ * Fixed moving `Flex Page` to itself causing the page to be lost [#3227](https://github.com/getgrav/grav/issues/3227) * Fixed `PageStorage` from detecting files as pages * Fixed `UserIndex` not implementing `UserCollectionInterface` + * Fixed system templates not getting scanned [#3296](https://github.com/getgrav/grav/issues/3296) # v1.7.9 ## 03/19/2021 diff --git a/system/src/Grav/Common/Page/Types.php b/system/src/Grav/Common/Page/Types.php index b9d8f9551..c7183680e 100644 --- a/system/src/Grav/Common/Page/Types.php +++ b/system/src/Grav/Common/Page/Types.php @@ -61,7 +61,7 @@ class Types implements \ArrayAccess, \Iterator, \Countable */ public function init() { - if (null === $this->systemBlueprints) { + if (empty($this->systemBlueprints)) { // Register all blueprints from the blueprints stream. $this->systemBlueprints = $this->findBlueprints('blueprints://pages'); foreach ($this->systemBlueprints as $type => $blueprint) {