X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FPrefixSearch.php;h=2c4199df1317ed87e06b7bea6835497bb5e07a79;hb=2a103ae8d7b6bcd04c57aedb2f307df75567d2e9;hp=e251ee684e786ac1d5a3f3f845b5811de89b62c0;hpb=042585fb9d7f11103fff5ca41bac8aabc90add0b;p=lhc%2Fweb%2Fwiklou.git 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 ) {