system blueprints not getting scanned. Fixes #3296

This commit is contained in:
Andy Miller
2021-03-30 11:53:27 -06:00
parent 1b9fd6276e
commit bbddb0a036
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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) {