Fomafix has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/351023 )

Change subject: Use NS_SPECIAL instead of -1
......................................................................

Use NS_SPECIAL instead of -1

Change-Id: Ifd33f339a3c5ec475cc3c6b2fba57c35386bab8b
---
M includes/api/ApiPageSet.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/23/351023/1

diff --git a/includes/api/ApiPageSet.php b/includes/api/ApiPageSet.php
index 5609ad8..599b3de 100644
--- a/includes/api/ApiPageSet.php
+++ b/includes/api/ApiPageSet.php
@@ -1356,7 +1356,7 @@
                        }
                }
                foreach ( $this->mGeneratorData as $ns => $dbkeys ) {
-                       if ( $ns === -1 ) {
+                       if ( $ns === NS_SPECIAL ) {
                                $pages = [];
                                foreach ( $this->mSpecialTitles as $id => 
$title ) {
                                        $pages[$title->getDBkey()] = $id;

-- 
To view, visit https://gerrit.wikimedia.org/r/351023
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifd33f339a3c5ec475cc3c6b2fba57c35386bab8b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Fomafix <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to