From: Niklas Laxström Date: Fri, 25 Jun 2010 14:21:07 +0000 (+0000) Subject: Suppress warnings X-Git-Tag: 1.31.0-rc.0~36385 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=4492854f;p=lhc%2Fweb%2Fwiklou.git Suppress warnings --- diff --git a/includes/PrefixSearch.php b/includes/PrefixSearch.php index e251ee684e..2c4199df13 100644 --- a/includes/PrefixSearch.php +++ b/includes/PrefixSearch.php @@ -102,7 +102,9 @@ class PrefixSearch { $srchres = array(); foreach( $keys as $pageKey => $page ) { if( $searchKey === '' || strpos( $pageKey, $searchKey ) === 0 ) { + wfSuppressWarnings(); $srchres[] = SpecialPage::getTitleFor( $page )->getPrefixedText(); + wfRestoreWarnings(); } if( count( $srchres ) >= $limit ) {