*** new/SpecialSearch.php 2010-04-15 16:19:15.000000000 -0400 --- specials/SpecialSearch.php 2010-04-15 16:20:05.000000000 -0400 *************** *** 93,98 **** --- 93,99 ---- # If there's an exact or very near match, jump right there. $t = SearchEngine::getNearMatch( $term ); if( !is_null( $t ) ) { + wfRunHooks( 'SpecialSearchGomatch', array( $t, $term ) ); $wgOut->redirect( $t->getFullURL() ); return; } *************** *** 886,891 **** --- 887,893 ---- # If there's an exact or very near match, jump right there. $t = SearchEngine::getNearMatch( $term ); if( !is_null( $t ) ) { + wfRunHooks( 'SpecialSearchGomatch', array( $t, $term ) ); $wgOut->redirect( $t->getFullURL() ); return; }