Skip to content

Commit

Permalink
add forum privilege to create forum tab on main forum index page
Browse files Browse the repository at this point in the history
  • Loading branch information
atutorlangs committed Sep 28, 2013
1 parent 6c86680 commit afb9c13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mods/_standard/forums/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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{
Expand Down

0 comments on commit afb9c13

Please sign in to comment.