Compare commits

..

1 Commits

Author SHA1 Message Date
26d1e12413 Revert version to 2.2.2-dev
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 28s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m37s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 3m1s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s
2025-07-07 16:53:10 +08:00
2 changed files with 2 additions and 6 deletions

View File

@ -38,11 +38,7 @@ class Template
// @todo Make sure we have a structural objectclass, or make the template invalid
$this->template = collect(json_decode($td->get($file),null,512,JSON_OBJECT_AS_ARRAY|JSON_THROW_ON_ERROR));
// Also test the regex is valid.
if ($this->template->has('regexp'))
preg_match($this->regexp,'');
} catch (\ErrorException|\JsonException $e) {
} catch (\JsonException $e) {
$this->invalid = TRUE;
$this->reason = $e->getMessage();
}

View File

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