From 8b23272c3363fa7bd83f4e6831929b4336ecf55b Mon Sep 17 00:00:00 2001 From: brunoais Date: Sat, 28 Feb 2015 08:45:34 +0000 Subject: [ticket/13660] Allow changing the query for total reports in mcp_front PHPBB3-13660 --- phpBB/includes/mcp/mcp_front.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'phpBB/includes/mcp/mcp_front.php') diff --git a/phpBB/includes/mcp/mcp_front.php b/phpBB/includes/mcp/mcp_front.php index 500db55456..145ac16ff4 100644 --- a/phpBB/includes/mcp/mcp_front.php +++ b/phpBB/includes/mcp/mcp_front.php @@ -157,6 +157,18 @@ function mcp_front_view($id, $mode, $action) AND r.pm_id = 0 AND r.report_closed = 0 AND ' . $db->sql_in_set('p.forum_id', $forum_list); + + /** + * Alter sql query to count the number of reported posts + * + * @event core.mcp_front_reports_count_query_before + * @var int sql The query string used to get the number of reports that exist + * @var array forum_list List of forums that contain the posts + * @since 3.1.0-RC3 + */ + $vars = array('sql', 'forum_list'); + extract($phpbb_dispatcher->trigger_event('core.mcp_front_reports_count_query_before', compact($vars))); + $result = $db->sql_query($sql); $total = (int) $db->sql_fetchfield('total'); $db->sql_freeresult($result); -- cgit v1.2.1 From 94da39cd883cc83102551cc4ed71ac385db85ba7 Mon Sep 17 00:00:00 2001 From: brunoais Date: Tue, 10 Mar 2015 15:42:07 +0000 Subject: [ticket/13660] Fix @since version. PHPBB3-13660 --- phpBB/includes/mcp/mcp_front.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/includes/mcp/mcp_front.php') diff --git a/phpBB/includes/mcp/mcp_front.php b/phpBB/includes/mcp/mcp_front.php index 145ac16ff4..8697223a54 100644 --- a/phpBB/includes/mcp/mcp_front.php +++ b/phpBB/includes/mcp/mcp_front.php @@ -164,7 +164,7 @@ function mcp_front_view($id, $mode, $action) * @event core.mcp_front_reports_count_query_before * @var int sql The query string used to get the number of reports that exist * @var array forum_list List of forums that contain the posts - * @since 3.1.0-RC3 + * @since 3.1.4-RC1 */ $vars = array('sql', 'forum_list'); extract($phpbb_dispatcher->trigger_event('core.mcp_front_reports_count_query_before', compact($vars))); -- cgit v1.2.1 From 603726371c07bde9a8c34f8f98eb51d15932aac3 Mon Sep 17 00:00:00 2001 From: brunoais Date: Wed, 6 May 2015 23:08:07 +0100 Subject: [ticket/13660] BUMP version to 3.1.5-RC1 PHPBB3-13660 --- phpBB/includes/mcp/mcp_front.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/includes/mcp/mcp_front.php') diff --git a/phpBB/includes/mcp/mcp_front.php b/phpBB/includes/mcp/mcp_front.php index 8697223a54..65b27f6b88 100644 --- a/phpBB/includes/mcp/mcp_front.php +++ b/phpBB/includes/mcp/mcp_front.php @@ -164,7 +164,7 @@ function mcp_front_view($id, $mode, $action) * @event core.mcp_front_reports_count_query_before * @var int sql The query string used to get the number of reports that exist * @var array forum_list List of forums that contain the posts - * @since 3.1.4-RC1 + * @since 3.1.5-RC1 */ $vars = array('sql', 'forum_list'); extract($phpbb_dispatcher->trigger_event('core.mcp_front_reports_count_query_before', compact($vars))); -- cgit v1.2.1