add check for themes without blueprints/templates folders

This commit is contained in:
Gert
2015-05-20 18:18:32 +02:00
parent bf61a123cc
commit e4b65d5d7f

View File

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