Suppress warnings

This commit is contained in:
Niklas Laxström 2010-06-25 14:21:07 +00:00
parent 9f3748f6f5
commit 4492854f61

View file

@ -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 ) {