Index: trunk/phase3/includes/search/SearchEngine.php |
— | — | @@ -92,8 +92,6 @@ |
93 | 93 | public static function getNearMatch( $searchterm ) { |
94 | 94 | $title = self::getNearMatchInternal( $searchterm ); |
95 | 95 | |
96 | | - wfRunHooks( 'SpecialSearchGomatch', array( &$title ) ); |
97 | | - |
98 | 96 | wfRunHooks( 'SearchGetNearMatchComplete', array( $searchterm, &$title ) ); |
99 | 97 | return $title; |
100 | 98 | } |
Index: trunk/phase3/includes/specials/SpecialSearch.php |
— | — | @@ -102,6 +102,7 @@ |
103 | 103 | } |
104 | 104 | # If there's an exact or very near match, jump right there. |
105 | 105 | $t = SearchEngine::getNearMatch( $term ); |
| 106 | + wfRunHooks( 'SpecialSearchGomatch', array( &$t ) ); |
106 | 107 | if( !is_null( $t ) ) { |
107 | 108 | $wgOut->redirect( $t->getFullURL() ); |
108 | 109 | return; |