Test the Template regex and disable the template if it is invalid. Fixes #361

This commit is contained in:
2025-07-07 18:11:36 +08:00
parent eeed0b04f6
commit 2ff0a10901
2 changed files with 6 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ class Entry extends Model
$to = new Template($file);
if ($to->invalid) {
Log::debug(sprintf('Template [%s] is not valid (%s) - ignoring',$file,$to->reason));
Log::alert(sprintf('Template [%s] is not valid (%s) - ignoring',$file,$to->reason));
} else {
$templates->put($file,new Template($file));