Преглед изворни кода

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

El RIDO пре 9 месеци
родитељ
комит
94a854faca
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      lib/Controller.php

+ 3 - 0
lib/Controller.php

@@ -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);