From b42b663d5be1f8cdec6fec4f0bbec659c73e0e69 Mon Sep 17 00:00:00 2001 From: Darko Date: Mon, 8 Jun 2015 09:29:27 +0200 Subject: [PATCH] Fix the AdminPage. --- newznab/controllers/AdminPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/newznab/controllers/AdminPage.php b/newznab/controllers/AdminPage.php index b739e4d7c..9ba9e1355 100644 --- a/newznab/controllers/AdminPage.php +++ b/newznab/controllers/AdminPage.php @@ -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);