[feature/soft-delete] Turn other functions into methods as well

PHPBB3-9567
This commit is contained in:
Joas Schilling 2012-10-15 15:05:02 +02:00
parent 7c2cc9cfef
commit a92927d24c

View file

@ -58,7 +58,7 @@ class mcp_queue
if ($action == 'approve')
{
approve_post($post_id_list, 'queue', $mode);
$this->approve_posts($post_id_list, 'queue', $mode);
}
else if ($action == 'restore')
{
@ -66,7 +66,7 @@ class mcp_queue
}
else
{
disapprove_post($post_id_list, 'queue', $mode);
$this->disapprove_posts($post_id_list, 'queue', $mode);
}
break;
@ -549,14 +549,12 @@ class mcp_queue
trigger_error($message);
}
}
}
/**
* Approve Post/Topic
*/
function approve_post($post_id_list, $id, $mode)
{
/**
* Approve Post/Topic
*/
function approve_posts($post_id_list, $id, $mode)
{
global $db, $template, $user, $config;
global $phpEx, $phpbb_root_path;
global $request;
@ -704,13 +702,13 @@ function approve_post($post_id_list, $id, $mode)
trigger_error($message);
}
}
}
/**
* Disapprove Post/Topic
*/
function disapprove_post($post_id_list, $id, $mode)
{
/**
* Disapprove Post/Topic
*/
function disapprove_posts($post_id_list, $id, $mode)
{
global $db, $template, $user, $config;
global $phpEx, $phpbb_root_path;
global $request;
@ -977,4 +975,5 @@ function disapprove_post($post_id_list, $id, $mode)
meta_refresh(3, $redirect);
trigger_error($message);
}
}
}