Go result was going straight to google fallback instead of the regular search if...
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 29 Feb 2004 07:24:47 +0000 (07:24 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 29 Feb 2004 07:24:47 +0000 (07:24 +0000)
includes/SearchEngine.php

index 0e182fc..40bce80 100644 (file)
@@ -471,11 +471,11 @@ class SearchEngine {
                        foreach( array(NS_MAIN, NS_WP, NS_USER, NS_IMAGE, NS_MEDIAWIKI) as $namespace){
                                $anyhit |= SearchEngine::doFuzzyTitleSearch( $search, $namespace );
                        }
-               } 
+               }
+               
                if( ! $anyhit ){
-                       $wgOut->addHTML( wfMsg("notitlematches") );
+                       return $this->showResults();
                }
-               $wgOut->addHTML( wfMsg( "googlesearch", htmlspecialchars( $search ), $GLOBALS['wgInputEncoding'] ) );
        }
 
        /* static */ function doFuzzyTitleSearch( $search, $namespace ){