From eca96053dc76aed8a2ccfe457cda5524f62ca809 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Sat, 29 Apr 2017 22:50:33 +0200 Subject: [PATCH] api: Use NS_SPECIAL instead of -1 in ApiPageSet Follows-up e2055fe0a55c. Change-Id: Ifd33f339a3c5ec475cc3c6b2fba57c35386bab8b --- includes/api/ApiPageSet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1