From dfba919db8fb6bd50bf009f6124444a6ec460231 Mon Sep 17 00:00:00 2001 From: brunoais Date: Fri, 28 Nov 2014 15:06:11 +0000 Subject: [ticket/13142] Adding core.mcp_sorting_unapproved_deleted_posts_query_before PHPBB3-13142 --- phpBB/includes/functions_mcp.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'phpBB/includes/functions_mcp.php') diff --git a/phpBB/includes/functions_mcp.php b/phpBB/includes/functions_mcp.php index 7593f08f4d..5c3d1d02e6 100644 --- a/phpBB/includes/functions_mcp.php +++ b/phpBB/includes/functions_mcp.php @@ -423,6 +423,28 @@ function phpbb_mcp_sorting($mode, &$sort_days, &$sort_key, &$sort_dir, &$sort_by AND t.topic_id = p.topic_id AND t.topic_visibility <> p.post_visibility'; + /** + * This event allows you to control the SQL query to retrieve the list of unaproved and deleted posts + * + * @event core.mcp_sorting_unapproved_deleted_posts_query_before + * @var string sql The current SQL search string + * @var int forum_id The forum id of the posts the user is trying to access + * @var int topic_id The topic id of the posts the user is trying to access + * @var int min_time Integer with the minimum post time that the user is searching for + * @var int visibility_const Integer with one of the possible ITEM_* constant values + * @var string where_sql Extra information included in the WHERE clause. It must end with "WHERE" or "AND" or "OR" + * @since 3.1.1-RC1 + */ + $vars = array( + 'sql', + 'forum_id', + 'topic_id', + 'min_time', + 'visibility_const', + 'where_sql', + ); + extract($phpbb_dispatcher->trigger_event('core.mcp_sorting_unapproved_deleted_posts_query_before', compact($vars))); + if ($min_time) { $sql .= ' AND post_time >= ' . $min_time; -- cgit v1.2.1 From aa10bc205947bd99f99172a09de63a15dfddecca Mon Sep 17 00:00:00 2001 From: brunoais Date: Fri, 28 Nov 2014 15:06:46 +0000 Subject: [ticket/13142] BUMPing version PHPBB3-13142 --- phpBB/includes/functions_mcp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/includes/functions_mcp.php') diff --git a/phpBB/includes/functions_mcp.php b/phpBB/includes/functions_mcp.php index 5c3d1d02e6..7a3ad3ca61 100644 --- a/phpBB/includes/functions_mcp.php +++ b/phpBB/includes/functions_mcp.php @@ -433,7 +433,7 @@ function phpbb_mcp_sorting($mode, &$sort_days, &$sort_key, &$sort_dir, &$sort_by * @var int min_time Integer with the minimum post time that the user is searching for * @var int visibility_const Integer with one of the possible ITEM_* constant values * @var string where_sql Extra information included in the WHERE clause. It must end with "WHERE" or "AND" or "OR" - * @since 3.1.1-RC1 + * @since 3.1.3-RC1 */ $vars = array( 'sql', -- cgit v1.2.1 From 6f52873636400cc3b59e9dbe680e4455b44d984e Mon Sep 17 00:00:00 2001 From: brunoais Date: Fri, 28 Nov 2014 16:28:01 +0000 Subject: [ticket/13142] Fix typo: unaproved -> unapproved PHPBB3-13142 --- phpBB/includes/functions_mcp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/includes/functions_mcp.php') diff --git a/phpBB/includes/functions_mcp.php b/phpBB/includes/functions_mcp.php index 7a3ad3ca61..375ded1bcf 100644 --- a/phpBB/includes/functions_mcp.php +++ b/phpBB/includes/functions_mcp.php @@ -424,7 +424,7 @@ function phpbb_mcp_sorting($mode, &$sort_days, &$sort_key, &$sort_dir, &$sort_by AND t.topic_visibility <> p.post_visibility'; /** - * This event allows you to control the SQL query to retrieve the list of unaproved and deleted posts + * This event allows you to control the SQL query to retrieve the list of unapproved and deleted posts * * @event core.mcp_sorting_unapproved_deleted_posts_query_before * @var string sql The current SQL search string -- cgit v1.2.1 From 93185574b5ad0f8460e75832a396566c2c3f9d49 Mon Sep 17 00:00:00 2001 From: brunoais Date: Wed, 11 Feb 2015 11:42:43 +0000 Subject: [ticket/13142] BUMPed version PHPBB3-13142 --- phpBB/includes/functions_mcp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/includes/functions_mcp.php') diff --git a/phpBB/includes/functions_mcp.php b/phpBB/includes/functions_mcp.php index 375ded1bcf..6c018c6947 100644 --- a/phpBB/includes/functions_mcp.php +++ b/phpBB/includes/functions_mcp.php @@ -433,7 +433,7 @@ function phpbb_mcp_sorting($mode, &$sort_days, &$sort_key, &$sort_dir, &$sort_by * @var int min_time Integer with the minimum post time that the user is searching for * @var int visibility_const Integer with one of the possible ITEM_* constant values * @var string where_sql Extra information included in the WHERE clause. It must end with "WHERE" or "AND" or "OR" - * @since 3.1.3-RC1 + * @since 3.1.4-RC1 */ $vars = array( 'sql', -- cgit v1.2.1