aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-10-01 09:56:39 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-10-01 09:56:39 +0200
commit1b393b1d0b0707c7ddd184c963d5c0d384c6cbee (patch)
tree19a2eceda69f974d5d3e979a92655241d2528b91
parenteffb5d95d0ecf01f6f5757ea5ee28049a2e8481d (diff)
parent04e9789e7f83060406bf03049cc0ed96bcdb2fc0 (diff)
downloadforums-1b393b1d0b0707c7ddd184c963d5c0d384c6cbee.tar
forums-1b393b1d0b0707c7ddd184c963d5c0d384c6cbee.tar.gz
forums-1b393b1d0b0707c7ddd184c963d5c0d384c6cbee.tar.bz2
forums-1b393b1d0b0707c7ddd184c963d5c0d384c6cbee.tar.xz
forums-1b393b1d0b0707c7ddd184c963d5c0d384c6cbee.zip
Merge pull request #2979 from blitze/ticket/13072
[ticket/13072] Add total_match_count to core.search_get_topic_data event
-rw-r--r--phpBB/search.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/search.php b/phpBB/search.php
index 93f12f4310..58b2bf40cb 100644
--- a/phpBB/search.php
+++ b/phpBB/search.php
@@ -739,9 +739,11 @@ 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
+ * @changed 3.1.0-RC5 Added total_match_count
*/
- $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