1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-20 07:42:09 +02:00

Merge pull request #3983 from prototech/ticket/13831

[ticket/13831] Store provided reason when deleting from Mod. Queue module.

* prototech/ticket/13831:
  [ticket/13831] Store provided reason when deleting from Mod. Queue module.
This commit is contained in:
Andreas Fischer 2015-11-02 21:48:32 +01:00
commit afbeda7cfd

View File

@ -72,6 +72,7 @@ class mcp_queue
case 'delete':
$post_id_list = $request->variable('post_id_list', array(0));
$topic_id_list = $request->variable('topic_id_list', array(0));
$delete_reason = $request->variable('delete_reason', '', true);
if (!empty($post_id_list))
{
@ -80,7 +81,7 @@ class mcp_queue
global $phpbb_root_path, $phpEx;
include($phpbb_root_path . 'includes/mcp/mcp_main.' . $phpEx);
}
mcp_delete_post($post_id_list, false, '', $action);
mcp_delete_post($post_id_list, false, $delete_reason, $action);
}
else if (!empty($topic_id_list))
{
@ -89,7 +90,7 @@ class mcp_queue
global $phpbb_root_path, $phpEx;
include($phpbb_root_path . 'includes/mcp/mcp_main.' . $phpEx);
}
mcp_delete_topic($topic_id_list, false, '', $action);
mcp_delete_topic($topic_id_list, false, $delete_reason, $action);
}
else
{