mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-01-23 02:35:23 +00:00
do add the configured template to the available ones, if missing
This commit is contained in:
parent
ea73300e15
commit
94a854faca
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue