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

This commit is contained in:
Darko
2015-06-08 09:29:27 +02:00
parent 8801ab4a70
commit 07085a9615
+3
View File
@@ -17,10 +17,13 @@ class Page extends BasePage
$role = $this->userdata["role"];
$content = new Contents(['Settings' => $this->settings]);
$f = new Forum();
$menu = new Menu($this->settings);
$this->smarty->assign('menulist',$menu->get($role, $this->serverurl));
$this->smarty->assign('usefulcontentlist', $content->getForMenuByTypeAndRole(Contents::TYPEUSEFUL, $role));
$this->smarty->assign('articlecontentlist', $content->getForMenuByTypeAndRole(Contents::TYPEARTICLE, $role));
if ($this->userdata != null)
$this->smarty->assign('recentforumpostslist',$f->getRecentPosts($this->settings->getSetting('showrecentforumposts')));
$this->smarty->assign('main_menu',$this->smarty->fetch('mainmenu.tpl'));
$this->smarty->assign('useful_menu',$this->smarty->fetch('usefullinksmenu.tpl'));