Suppress warnings
This commit is contained in:
parent
9f3748f6f5
commit
4492854f61
1 changed files with 2 additions and 0 deletions
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue