SpecialSearchResults hooks does not use by-ref anymore
authorStanislav Malyshev <smalyshev@gmail.com>
Tue, 17 Jan 2017 22:51:51 +0000 (14:51 -0800)
committerStanislav Malyshev <smalyshev@gmail.com>
Tue, 17 Jan 2017 22:51:51 +0000 (14:51 -0800)
In general, there's no reason to use by-ref on objects unless
the hook is supposed to replace them (this one isn't).

Change-Id: I153a7d590faceb1e2c4fe7d95a5cb931cda0c301

docs/hooks.txt

index 1da39cf..7162cce 100644 (file)
@@ -3203,8 +3203,8 @@ $opts: Array: key => value of hidden options for inclusion in custom forms
 
 '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