Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -1289,7 +1289,7 @@ |
1290 | 1290 | |
1291 | 1291 | 'SearchGetNearMatchBefore': Perform exact-title-matches in "go" searches before the normal operations |
1292 | 1292 | $allSearchTerms : Array of the search terms in all content languages |
1293 | | -&$titleResult : Outparam; the value to return. A Title object or null. |
| 1293 | +$titleResult : Outparam; the value to return. A Title object or null. |
1294 | 1294 | |
1295 | 1295 | 'SearchGetNearMatch': An extra chance for exact-title-matches in "go" searches if nothing was found |
1296 | 1296 | $term : Search term string |
— | — | @@ -1297,7 +1297,7 @@ |
1298 | 1298 | |
1299 | 1299 | 'SearchGetNearMatchComplete': A chance to modify exact-title-matches in "go" searches |
1300 | 1300 | $term : Search term string |
1301 | | -&$title : Current Title object that is being returned (null if none found). |
| 1301 | +$title : Current Title object that is being returned (null if none found). |
1302 | 1302 | |
1303 | 1303 | 'SearchEngineReplacePrefixesComplete': Run after SearchEngine::replacePrefixes(). |
1304 | 1304 | $searchEngine : The SearchEngine object. Users of this hooks will be interested |
Index: trunk/phase3/includes/search/SearchEngine.php |
— | — | @@ -77,7 +77,7 @@ |
78 | 78 | public static function getNearMatch( $searchterm ) { |
79 | 79 | $title = self::getNearMatchInternal( $searchterm ); |
80 | 80 | |
81 | | - wfRunHooks( 'SearchGetNearMatchComplete', array( $searchterm, &$title ) ); |
| 81 | + wfRunHooks( 'SearchGetNearMatchComplete', array( $searchterm, $title ) ); |
82 | 82 | return $title; |
83 | 83 | } |
84 | 84 | |
— | — | @@ -93,7 +93,7 @@ |
94 | 94 | $allSearchTerms = array_merge($allSearchTerms,$wgContLang->convertLinkToAllVariants($searchterm)); |
95 | 95 | } |
96 | 96 | |
97 | | - if( !wfRunHooks( 'SearchGetNearMatchBefore', array( $allSearchTerms, &$titleResult ) ) ) { |
| 97 | + if( !wfRunHooks( 'SearchGetNearMatchBefore', array( $allSearchTerms, $titleResult ) ) ) { |
98 | 98 | return $titleResult; |
99 | 99 | } |
100 | 100 | |