mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-07 09:16:55 +02:00
- approve/disapprove posts/topics
- changed mcp_front to be more moderator friendly - able to change the forum in mcp_queue (for moderators moderating more than one forum) git-svn-id: file:///svn/phpbb/trunk@4937 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -245,14 +245,22 @@ class module
|
||||
// Add Item to Submodule Title
|
||||
function add_menu_item($module_name, $mode)
|
||||
{
|
||||
global $db, $user;
|
||||
global $db, $user, $auth;
|
||||
|
||||
if ($module_name != 'queue')
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
$forum_list = get_forum_list('m_approve');
|
||||
$forum_id = request_var('f', 0);
|
||||
if ($forum_id && $auth->acl_get('m_approve', $forum_id))
|
||||
{
|
||||
$forum_list = array($forum_id);
|
||||
}
|
||||
else
|
||||
{
|
||||
$forum_list = get_forum_list('m_approve');
|
||||
}
|
||||
|
||||
switch ($mode)
|
||||
{
|
||||
@@ -327,6 +335,11 @@ $mode = request_var('mode', '');
|
||||
$mode2 = (isset($_REQUEST['quick'])) ? request_var('mode2', '') : '';
|
||||
$module = request_var('i', '');
|
||||
|
||||
if (is_array($mode))
|
||||
{
|
||||
list($mode, ) = each($mode);
|
||||
}
|
||||
|
||||
if ($mode2)
|
||||
{
|
||||
$mode = $mode2;
|
||||
|
Reference in New Issue
Block a user