aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-04-16 21:30:52 +0200
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-04-16 21:30:52 +0200
commitc89384eb86c0d2ff89f9df69dbd14fb61cfcb624 (patch)
tree98bac3192ed32ea6483c33a77aadc1c1f95200cf /phpBB/viewtopic.php
parentf077b72d0ddabd13350bea276069b68d5df4a89c (diff)
parenta089ff5eb0dcdab83c6c2e64cb0e7cb618aec41f (diff)
downloadforums-c89384eb86c0d2ff89f9df69dbd14fb61cfcb624.tar
forums-c89384eb86c0d2ff89f9df69dbd14fb61cfcb624.tar.gz
forums-c89384eb86c0d2ff89f9df69dbd14fb61cfcb624.tar.bz2
forums-c89384eb86c0d2ff89f9df69dbd14fb61cfcb624.tar.xz
forums-c89384eb86c0d2ff89f9df69dbd14fb61cfcb624.zip
Merge pull request #3446 from MateBartus/ticket/13654
[ticket/13654] Moving reporting into controller
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 76e7a59d5d..7b225ef3db 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -1832,7 +1832,7 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
'U_JABBER' => $user_cache[$poster_id]['jabber'],
'U_APPROVE_ACTION' => append_sid("{$phpbb_root_path}mcp.$phpEx", "i=queue&amp;p={$row['post_id']}&amp;f=$forum_id&amp;redirect=" . urlencode(str_replace('&amp;', '&', $viewtopic_url . '&amp;p=' . $row['post_id'] . '#p' . $row['post_id']))),
- 'U_REPORT' => ($auth->acl_get('f_report', $forum_id)) ? append_sid("{$phpbb_root_path}report.$phpEx", 'f=' . $forum_id . '&amp;p=' . $row['post_id']) : '',
+ 'U_REPORT' => ($auth->acl_get('f_report', $forum_id)) ? $phpbb_container->get('controller.helper')->route('phpbb_report_post_controller', array('id' => $row['post_id'])) : '',
'U_MCP_REPORT' => ($auth->acl_get('m_report', $forum_id)) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=reports&amp;mode=report_details&amp;f=' . $forum_id . '&amp;p=' . $row['post_id'], true, $user->session_id) : '',
'U_MCP_APPROVE' => ($auth->acl_get('m_approve', $forum_id)) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=queue&amp;mode=approve_details&amp;f=' . $forum_id . '&amp;p=' . $row['post_id'], true, $user->session_id) : '',
'U_MCP_RESTORE' => ($auth->acl_get('m_approve', $forum_id)) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=queue&amp;mode=' . (($topic_data['topic_visibility'] != ITEM_DELETED) ? 'deleted_posts' : 'deleted_topics') . '&amp;f=' . $forum_id . '&amp;p=' . $row['post_id'], true, $user->session_id) : '',