1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-11 09:14:58 +02:00

Various minor code updates

This commit is contained in:
Ryan Cramer
2022-05-10 08:24:50 -04:00
parent 14a9b92c70
commit bf80df04e9
7 changed files with 76 additions and 41 deletions

View File

@@ -816,6 +816,10 @@ class Templates extends WireSaveableItems {
$pageClass = "\\$pageClass";
} else {
// class is not available for instantiation
$this->warning(
"Template '$template' page class '$pageClass' is not available",
Notice::debug | Notice::superuser | Notice::admin
);
$pageClass = '';
// do not cache because maybe class will be available later
$cacheable = false;