&$query_options: array of options for the database request
&$select: String '*' or array of columns to select
-'SpecialSearchGomatch': called when user clicked the "Go" button and the target
-exists
+'SpecialSearchGo': called when user clicked the "Go"
&$title: title object generated from the text entered by the user
'SpecialSearchNogomatch': called when user clicked the "Go" button but the
public static function getNearMatch( $searchterm ) {
$title = self::getNearMatchInternal( $searchterm );
+ wfRunHooks( 'SpecialSearchGomatch', array( &$title ) );
+
wfRunHooks( 'SearchGetNearMatchComplete', array( $searchterm, &$title ) );
return $title;
}
# If there's an exact or very near match, jump right there.
$t = SearchEngine::getNearMatch( $term );
if( !is_null( $t ) ) {
- wfRunHooks( 'SpecialSearchGomatch', array( &$t ) );
$wgOut->redirect( $t->getFullURL() );
return;
}