From 86e2200f8e4fb2f42ad3999873cd7e6db203e9d6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Fri, 11 Apr 2014 23:42:45 +0200 Subject: [PATCH] PrefixSearch: Remove unnecessary wfSuppressWarnings() It was added in 4492854f (r68563), where the code this was suppressing warnings for was something rather different. It doesn't seem necessary now. Change-Id: Ia501afd1244b94563fe52294945798963f8db1a9 --- includes/PrefixSearch.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/includes/PrefixSearch.php b/includes/PrefixSearch.php index 957a119de3..45c591adc6 100644 --- a/includes/PrefixSearch.php +++ b/includes/PrefixSearch.php @@ -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 ) { -- 2.20.1