Update Page.php, add back some things previously removed.

(cherry picked from commit 07085a9)
This commit is contained in:
Darko
2015-06-08 09:29:27 +02:00
parent fa7f27d080
commit 964c3ecbee
+2 -2
View File
@@ -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