mirror of
https://github.com/getgrav/grav.git
synced 2026-07-07 06:32:11 +02:00
add check for themes without blueprints/templates folders
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user