From e4b65d5d7f3fe93170e6b0d2fbd1830ac13c41b9 Mon Sep 17 00:00:00 2001 From: Gert Date: Wed, 20 May 2015 18:18:32 +0200 Subject: [PATCH] add check for themes without blueprints/templates folders --- system/src/Grav/Common/Page/Pages.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/src/Grav/Common/Page/Pages.php b/system/src/Grav/Common/Page/Pages.php index ac0e9e70f..f72b27ede 100644 --- a/system/src/Grav/Common/Page/Pages.php +++ b/system/src/Grav/Common/Page/Pages.php @@ -392,8 +392,8 @@ class Pages { if (!self::$types) { self::$types = new Types(); - self::$types->scanBlueprints('theme://blueprints/'); - self::$types->scanTemplates('theme://templates/'); + file_exists('theme://blueprints/') && self::$types->scanBlueprints('theme://blueprints/'); + file_exists('theme://templates/') && self::$types->scanTemplates('theme://templates/'); $event = new Event(); $event->types = self::$types;