mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-03-05 13:30:32 -05:00
do add the configured template to the available ones, if missing
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user