'SpecialSearchResults': Called before search result display
$term: string of search term
-$titleMatches: empty or SearchResultSet object
-$textMatches: empty or SearchResultSet object
+&$titleMatches: empty or SearchResultSet object
+&$textMatches: empty or SearchResultSet object
'SpecialSearchResultsPrepend': Called immediately before returning HTML
on the search results page. Useful for including an external search
// Show the create link ahead
$this->showCreateLink( $title, $num, $titleMatches, $textMatches );
- Hooks::run( 'SpecialSearchResults', [ $term, $titleMatches, $textMatches ] );
+ Hooks::run( 'SpecialSearchResults', [ $term, &$titleMatches, &$textMatches ] );
// If we have no results and have not already displayed an error message
if ( $num === 0 && !$hasErrors ) {