Merge "PrefixSearch: Add unit tests for StringPrefixSearch"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 7 Oct 2014 12:41:08 +0000 (12:41 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 7 Oct 2014 12:41:08 +0000 (12:41 +0000)
1  2 
includes/PrefixSearch.php

@@@ -63,8 -63,7 +63,7 @@@ abstract class PrefixSearch 
                        if ( $ns[0] == NS_MAIN ) {
                                $ns = $namespaces; // no explicit prefix, use default namespaces
                        }
-                       return $this->searchBackend(
-                               $ns, $title->getText(), $limit );
+                       return $this->searchBackend( $ns, $title->getText(), $limit );
                }
  
                // Is this a namespace prefix?
                // Unlike SpecialPage itself, we want the canonical forms of both
                // canonical and alias title forms...
                $keys = array();
 -              foreach ( SpecialPageFactory::getNames() as $page  ) {
 +              foreach ( SpecialPageFactory::getNames() as $page ) {
                        $keys[$wgContLang->caseFold( $page )] = $page;
                }