From: Bartosz DziewoƄski Date: Fri, 11 Apr 2014 21:42:45 +0000 (+0200) Subject: PrefixSearch: Remove unnecessary wfSuppressWarnings() X-Git-Tag: 1.31.0-rc.0~16233^2 X-Git-Url: http://git.cyclocoop.org/%27.generer_url_ecrire%28%27admin_couteau_suisse%27%2C%27cmd=descrip&outil=boites_privees?a=commitdiff_plain;h=86e2200f8e4fb2f42ad3999873cd7e6db203e9d6;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 ) {