mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 00:37:42 +02:00
some fixes today
- most important change is the consolidation of the display attachment functions; merging them together to have one function we need to call. git-svn-id: file:///svn/phpbb/trunk@6803 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -50,11 +50,11 @@ class mcp_queue
|
||||
|
||||
if ($action == 'approve')
|
||||
{
|
||||
approve_post($post_id_list, $mode);
|
||||
approve_post($post_id_list, 'queue', $mode);
|
||||
}
|
||||
else
|
||||
{
|
||||
disapprove_post($post_id_list, $mode);
|
||||
disapprove_post($post_id_list, 'queue', $mode);
|
||||
}
|
||||
|
||||
break;
|
||||
@@ -372,7 +372,7 @@ class mcp_queue
|
||||
/**
|
||||
* Approve Post/Topic
|
||||
*/
|
||||
function approve_post($post_id_list, $mode)
|
||||
function approve_post($post_id_list, $id, $mode)
|
||||
{
|
||||
global $db, $template, $user, $config;
|
||||
global $phpEx, $phpbb_root_path;
|
||||
@@ -386,7 +386,7 @@ function approve_post($post_id_list, $mode)
|
||||
$success_msg = '';
|
||||
|
||||
$s_hidden_fields = build_hidden_fields(array(
|
||||
'i' => 'queue',
|
||||
'i' => $id,
|
||||
'mode' => $mode,
|
||||
'post_id_list' => $post_id_list,
|
||||
'action' => 'approve',
|
||||
@@ -617,7 +617,7 @@ function approve_post($post_id_list, $mode)
|
||||
/**
|
||||
* Disapprove Post/Topic
|
||||
*/
|
||||
function disapprove_post($post_id_list, $mode)
|
||||
function disapprove_post($post_id_list, $id, $mode)
|
||||
{
|
||||
global $db, $template, $user, $config;
|
||||
global $phpEx, $phpbb_root_path;
|
||||
@@ -633,7 +633,7 @@ function disapprove_post($post_id_list, $mode)
|
||||
$success_msg = $additional_msg = '';
|
||||
|
||||
$s_hidden_fields = build_hidden_fields(array(
|
||||
'i' => 'queue',
|
||||
'i' => $id,
|
||||
'mode' => $mode,
|
||||
'post_id_list' => $post_id_list,
|
||||
'action' => 'disapprove',
|
||||
|
Reference in New Issue
Block a user