mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-07-24 07:20:45 -04:00
Use the traditional "template" config key, update unit-tests
This commit is contained in:
parent
bce449de10
commit
5b54f2cdb0
5 changed files with 28 additions and 12 deletions
|
@ -213,9 +213,10 @@ class Controller
|
|||
$this->_conf = new Configuration;
|
||||
|
||||
$templates = $this->_conf->getSection('available_templates');
|
||||
$template = $this->_conf->getKey('templatedefault');
|
||||
$template = $this->_conf->getKey('template');
|
||||
TemplateSwitcher::setAvailableTemplates($templates);
|
||||
TemplateSwitcher::setTemplateFallback($template);
|
||||
|
||||
// force default template, if template selection is disabled and a default is set
|
||||
if (!$this->_conf->getKey('templateselection') && !empty($template)) {
|
||||
$_COOKIE['template'] = $template;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue