do add the configured template to the available ones, if missing

This commit is contained in:
El RIDO 2025-11-11 10:59:55 +01:00
parent ea73300e15
commit 94a854faca
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92

View file

@ -216,6 +216,9 @@ class Controller
{
$templates = $this->_conf->getKey('availabletemplates');
$template = $this->_conf->getKey('template');
if (!in_array($template, $templates, true)) {
$templates[] = $template;
}
TemplateSwitcher::setAvailableTemplates($templates);
TemplateSwitcher::setTemplateFallback($template);