From afb9c13ac6350728e65a2bba46e0a5e074360ca9 Mon Sep 17 00:00:00 2001 From: atutor Date: Sat, 28 Sep 2013 09:30:13 -0400 Subject: [PATCH] add forum privilege to create forum tab on main forum index page --- mods/_standard/forums/module.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/_standard/forums/module.php b/mods/_standard/forums/module.php index 5ed65b424..6df14c442 100644 --- a/mods/_standard/forums/module.php +++ b/mods/_standard/forums/module.php @@ -25,6 +25,7 @@ $this->_pages['mods/_standard/forums/add_forum.php']['title_var'] = 'create_forum'; $this->_pages['mods/_standard/forums/add_forum.php']['parent'] = 'mods/_standard/forums/index.php'; +$this->_pages['mods/_standard/forums/add_forum.php']['children'] = array('mods/_standard/forums/forum/list.php','search.php?search_within[]=forums'); $this->_pages['mods/_standard/forums/delete_forum.php']['title_var'] = 'delete_forum'; $this->_pages['mods/_standard/forums/delete_forum.php']['parent'] = 'mods/_standard/forums/forums/index.php'; @@ -43,7 +44,7 @@ if($_SESSION['is_admin'] > 0 || authenticate(AT_PRIV_FORUMS, TRUE) && $_SESSION['hide_admin'] == 0){ $this->_pages['mods/_standard/forums/add_forum.php']['title_var'] = 'create_forum'; -$this->_pages['mods/_standard/forums/add_forum.php']['parent'] = 'mods/_standard/forums/forum/list'; +$this->_pages['mods/_standard/forums/add_forum.php']['parent'] = 'mods/_standard/forums/forum/list.php'; $this->_pages['mods/_standard/forums/forum/list.php']['children'] = array('search.php?search_within[]=forums', 'mods/_standard/forums/add_forum.php'); }else{