Merge "Remove #bodyContent { width: 100%; }"
[lhc/web/wiklou.git] / includes / PrefixSearch.php
index 957a119..a9179eb 100644 (file)
@@ -37,8 +37,8 @@ abstract class PrefixSearch {
         * @return Array of strings
         */
        public static function titleSearch( $search, $limit, $namespaces = array() ) {
-               $search = new StringPrefixSearch;
-               return $search->search( $search, $limit, $namespaces );
+               $prefixSearch = new StringPrefixSearch;
+               return $prefixSearch->search( $search, $limit, $namespaces );
        }
 
        /**
@@ -192,13 +192,11 @@ abstract class PrefixSearch {
                $srchres = array();
                foreach ( $keys as $pageKey => $page ) {
                        if ( $searchKey === '' || strpos( $pageKey, $searchKey ) === 0 ) {
-                               wfSuppressWarnings();
                                // bug 27671: Don't use SpecialPage::getTitleFor() here because it
                                // localizes its input leading to searches for e.g. Special:All
                                // returning Spezial:MediaWiki-Systemnachrichten and returning
                                // Spezial:Alle_Seiten twice when $wgLanguageCode == 'de'
                                $srchres[] = Title::makeTitleSafe( NS_SPECIAL, $page );
-                               wfRestoreWarnings();
                        }
 
                        if ( count( $srchres ) >= $limit ) {