Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -1607,8 +1607,7 @@ |
1608 | 1608 | &$query_options: array of options for the database request |
1609 | 1609 | &$select: String '*' or array of columns to select |
1610 | 1610 | |
1611 | | -'SpecialSearchGomatch': called when user clicked the "Go" button and the target |
1612 | | -exists |
| 1611 | +'SpecialSearchGo': called when user clicked the "Go" |
1613 | 1612 | &$title: title object generated from the text entered by the user |
1614 | 1613 | |
1615 | 1614 | 'SpecialSearchNogomatch': called when user clicked the "Go" button but the |
Index: trunk/phase3/includes/search/SearchEngine.php |
— | — | @@ -92,6 +92,8 @@ |
93 | 93 | public static function getNearMatch( $searchterm ) { |
94 | 94 | $title = self::getNearMatchInternal( $searchterm ); |
95 | 95 | |
| 96 | + wfRunHooks( 'SpecialSearchGomatch', array( &$title ) ); |
| 97 | + |
96 | 98 | wfRunHooks( 'SearchGetNearMatchComplete', array( $searchterm, &$title ) ); |
97 | 99 | return $title; |
98 | 100 | } |
Index: trunk/phase3/includes/specials/SpecialSearch.php |
— | — | @@ -103,7 +103,6 @@ |
104 | 104 | # If there's an exact or very near match, jump right there. |
105 | 105 | $t = SearchEngine::getNearMatch( $term ); |
106 | 106 | if( !is_null( $t ) ) { |
107 | | - wfRunHooks( 'SpecialSearchGomatch', array( &$t ) ); |
108 | 107 | $wgOut->redirect( $t->getFullURL() ); |
109 | 108 | return; |
110 | 109 | } |