return;
}
- # if language supports variants, search in all variants
- if(sizeof($wgContLang->getVariants())>1){
- $allTermVariants = $wgContLang->convertLinkToAllVariants($term);
-
- foreach($allTermVariants as $termVariant){
- $t = SearchEngine::getNearMatch( $termVariant );
- if( !is_null( $t ) ) {
- $wgOut->redirect( $t->getFullURL() );
- wfProfileOut( $fname );
- return;
- }
- }
- }
-
# No match, generate an edit URL
$t = Title::newFromText( $term );
if( is_null( $t ) ) {
wfMsg( 'googlesearch',
htmlspecialchars( $term ),
htmlspecialchars( $wgInputEncoding ),
- htmlspecialchars( wfMsg( 'search' ) )
+ htmlspecialchars( wfMsg( 'searchbutton' ) )
)
);
wfProfileOut( $fname );