mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-17 21:38:10 -04:00
do add the configured template to the available ones, if missing
This commit is contained in:
@@ -210,6 +210,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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user