Revert r53600 "Add $wgSecondaryGoNamespace, used if an exact match is not found when...
[lhc/web/wiklou.git] / includes / search / SearchEngine.php
index aab14cb..daec7ca 100644 (file)
@@ -63,7 +63,7 @@ class SearchEngine {
         * @return Title
         */
        public static function getNearMatch( $searchterm ) {
-               global $wgContLang, $wgSecondaryGoNamespaces;
+               global $wgContLang;
 
                $allSearchTerms = array($searchterm);
 
@@ -88,14 +88,6 @@ class SearchEngine {
                                return $title;
                        }
 
-                       # If a match is not found in the main namespace look in secondary go namespaces.
-                       if( $wgSecondaryGoNamespaces && $title->getNamespace() == NS_MAIN ) {
-                               foreach( $wgSecondaryGoNamespaces as $ns ) {
-                                       $title = Title::newFromText( $term, $ns );
-                                       if( $title && $title->exists() ) return $title;
-                               }
-                       }
-
                        # Now try all lower case (i.e. first letter capitalized)
                        #
                        $title = Title::newFromText( $wgContLang->lc( $term ) );