mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/13654] Moving reporting into controller
Moving report.php's content into different services and controllers to better comply with the MVC model. Also implementing: * Replacement for reasons_display() * Adding assign_meta_refresh_var() to \controller\helper * Adding separate routes for easy configuration * Updating unit tests to expect to correct results * Add BC tests PHPBB3-13654
This commit is contained in:
@@ -1402,11 +1402,6 @@ class mcp_queue
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!function_exists('display_reasons'))
|
||||
{
|
||||
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
|
||||
}
|
||||
|
||||
$show_notify = false;
|
||||
|
||||
foreach ($post_info as $post_data)
|
||||
@@ -1426,7 +1421,7 @@ class mcp_queue
|
||||
$confirm_template = 'mcp_approve.html';
|
||||
if ($is_disapproving)
|
||||
{
|
||||
display_reasons($reason_id);
|
||||
$phpbb_container->get('phpbb.report.report_reason_list_provider')->display_reasons($reason_id);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user