Skip to content

Commit

Permalink
Merge pull request phpbb#3983 from prototech/ticket/13831
Browse files Browse the repository at this point in the history
[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.
  • Loading branch information
bantu committed Nov 2, 2015
2 parents 6a75674 + f657680 commit afbeda7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions phpBB/includes/mcp/mcp_queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public function main($id, $mode)
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))
{
Expand All @@ -80,7 +81,7 @@ public function main($id, $mode)
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))
{
Expand All @@ -89,7 +90,7 @@ public function main($id, $mode)
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
{
Expand Down

0 comments on commit afbeda7

Please sign in to comment.