jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/351023 )
Change subject: api: Use NS_SPECIAL instead of -1 in ApiPageSet
......................................................................
api: Use NS_SPECIAL instead of -1 in ApiPageSet
Follows-up e2055fe0a55c.
Change-Id: Ifd33f339a3c5ec475cc3c6b2fba57c35386bab8b
---
M includes/api/ApiPageSet.php
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
GeoffreyT2000: Looks good to me, but someone else must approve
Krinkle: Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: Ifd33f339a3c5ec475cc3c6b2fba57c35386bab8b
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Fomafix <[email protected]>
Gerrit-Reviewer: Anomie <[email protected]>
Gerrit-Reviewer: GeoffreyT2000 <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits