Fix the AdminPage.

This commit is contained in:
Darko
2015-06-08 09:29:27 +02:00
parent 2e6d4202c0
commit b42b663d5b
+2 -2
View File
@@ -14,8 +14,8 @@ class AdminPage extends BasePage
parent::__construct();
$tplpaths = [];
if ($this->pdo->getSetting('style') != "default")
$tplpaths["style_admin"] = WWW_DIR.'templates/'.$this->pdo->getSetting('style').'/views/admin';
if ($this->settings->getSetting('style') != "default")
$tplpaths["style_admin"] = WWW_DIR.'templates/'.$this->settings->getSetting('style').'/views/admin';
$tplpaths["admin"] = WWW_DIR.'templates/default/views/admin';
$tplpaths["frontend"] = WWW_DIR.'templates/default/views/frontend';
$this->smarty->setTemplateDir($tplpaths);