From 964c3ecbee44edee0ba7bdfdaf365e79ee043b6e Mon Sep 17 00:00:00 2001 From: Darko Date: Mon, 8 Jun 2015 09:29:27 +0200 Subject: [PATCH] Update Page.php, add back some things previously removed. (cherry picked from commit 07085a9) --- newznab/controllers/Page.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/newznab/controllers/Page.php b/newznab/controllers/Page.php index bba57fa18..856d66eaf 100644 --- a/newznab/controllers/Page.php +++ b/newznab/controllers/Page.php @@ -16,7 +16,7 @@ class Page extends BasePage if ($this->userdata != null) $role = $this->userdata["role"]; - $content = new Contents(); + $content = new Contents(['Settings' => $this->settings]); $f = new Forum(); $menu = new Menu($this->settings); $this->smarty->assign('menulist',$menu->get($role, $this->serverurl)); @@ -29,7 +29,7 @@ class Page extends BasePage $this->smarty->assign('useful_menu',$this->smarty->fetch('usefullinksmenu.tpl')); $this->smarty->assign('article_menu',$this->smarty->fetch('articlesmenu.tpl')); - $category = new Category(); + $category = new Category(['Settings' => $content->pdo]); if ($this->userdata != null) $parentcatlist = $category->getForMenu($this->userdata["categoryexclusions"]); else