From: Fomafix Date: Sat, 29 Apr 2017 20:50:33 +0000 (+0200) Subject: api: Use NS_SPECIAL instead of -1 in ApiPageSet X-Git-Tag: 1.31.0-rc.0~3387^2 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=eca96053dc76aed8a2ccfe457cda5524f62ca809;p=lhc%2Fweb%2Fwiklou.git api: Use NS_SPECIAL instead of -1 in ApiPageSet Follows-up e2055fe0a55c. Change-Id: Ifd33f339a3c5ec475cc3c6b2fba57c35386bab8b --- diff --git a/includes/api/ApiPageSet.php b/includes/api/ApiPageSet.php index 5609ad865c..599b3de559 100644 --- a/includes/api/ApiPageSet.php +++ b/includes/api/ApiPageSet.php @@ -1356,7 +1356,7 @@ class ApiPageSet extends ApiBase { } } foreach ( $this->mGeneratorData as $ns => $dbkeys ) { - if ( $ns === -1 ) { + if ( $ns === NS_SPECIAL ) { $pages = []; foreach ( $this->mSpecialTitles as $id => $title ) { $pages[$title->getDBkey()] = $id;