mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/soft-delete] Turn other functions into methods as well
PHPBB3-9567
This commit is contained in:
parent
7c2cc9cfef
commit
a92927d24c
1 changed files with 386 additions and 387 deletions
|
@ -58,7 +58,7 @@ class mcp_queue
|
||||||
|
|
||||||
if ($action == 'approve')
|
if ($action == 'approve')
|
||||||
{
|
{
|
||||||
approve_post($post_id_list, 'queue', $mode);
|
$this->approve_posts($post_id_list, 'queue', $mode);
|
||||||
}
|
}
|
||||||
else if ($action == 'restore')
|
else if ($action == 'restore')
|
||||||
{
|
{
|
||||||
|
@ -66,7 +66,7 @@ class mcp_queue
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
disapprove_post($post_id_list, 'queue', $mode);
|
$this->disapprove_posts($post_id_list, 'queue', $mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
@ -549,13 +549,11 @@ class mcp_queue
|
||||||
trigger_error($message);
|
trigger_error($message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Approve Post/Topic
|
* Approve Post/Topic
|
||||||
*/
|
*/
|
||||||
function approve_post($post_id_list, $id, $mode)
|
function approve_posts($post_id_list, $id, $mode)
|
||||||
{
|
{
|
||||||
global $db, $template, $user, $config;
|
global $db, $template, $user, $config;
|
||||||
global $phpEx, $phpbb_root_path;
|
global $phpEx, $phpbb_root_path;
|
||||||
|
@ -709,7 +707,7 @@ function approve_post($post_id_list, $id, $mode)
|
||||||
/**
|
/**
|
||||||
* Disapprove Post/Topic
|
* Disapprove Post/Topic
|
||||||
*/
|
*/
|
||||||
function disapprove_post($post_id_list, $id, $mode)
|
function disapprove_posts($post_id_list, $id, $mode)
|
||||||
{
|
{
|
||||||
global $db, $template, $user, $config;
|
global $db, $template, $user, $config;
|
||||||
global $phpEx, $phpbb_root_path;
|
global $phpEx, $phpbb_root_path;
|
||||||
|
@ -978,3 +976,4 @@ function disapprove_post($post_id_list, $id, $mode)
|
||||||
trigger_error($message);
|
trigger_error($message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue