From d6de9ce5d99aa1afc8d8c044374831ada2c3abb9 Mon Sep 17 00:00:00 2001 From: blitze Date: Sun, 21 Sep 2014 08:22:15 +0000 Subject: [PATCH 1/2] [ticket/13072] Add total_match_count to core.search_get_topic_data event PHPBB3-13072 --- phpBB/search.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpBB/search.php b/phpBB/search.php index 93f12f4310..668768f8cc 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -739,9 +739,10 @@ if ($keywords || $author || $author_id || $search_id || $submit) * @var string sql_select The SQL SELECT string used by search to get topic data * @var string sql_from The SQL FROM string used by search to get topic data * @var string sql_where The SQL WHERE string used by search to get topic data + * @var int total_match_count The total number of search matches * @since 3.1.0-a1 */ - $vars = array('sql_select', 'sql_from', 'sql_where'); + $vars = array('sql_select', 'sql_from', 'sql_where', 'total_match_count'); extract($phpbb_dispatcher->trigger_event('core.search_get_topic_data', compact($vars))); $sql = "SELECT $sql_select From 04e9789e7f83060406bf03049cc0ed96bcdb2fc0 Mon Sep 17 00:00:00 2001 From: blitze Date: Wed, 24 Sep 2014 16:15:38 +0000 Subject: [PATCH 2/2] [ticket/13072] Added '@changed 3.1.0-RC5 Added total_match_count' PHPBB3-13072 --- phpBB/search.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpBB/search.php b/phpBB/search.php index 668768f8cc..58b2bf40cb 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -741,6 +741,7 @@ if ($keywords || $author || $author_id || $search_id || $submit) * @var string sql_where The SQL WHERE string used by search to get topic data * @var int total_match_count The total number of search matches * @since 3.1.0-a1 + * @changed 3.1.0-RC5 Added total_match_count */ $vars = array('sql_select', 'sql_from', 'sql_where', 'total_match_count'); extract($phpbb_dispatcher->trigger_event('core.search_get_topic_data', compact($vars)));