ItSpiderman has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/350419 )
Change subject: ApiTitleQueryStore: Fix for not returning Titles from NS_MAIN
......................................................................
ApiTitleQueryStore: Fix for not returning Titles from NS_MAIN
Namespace main (0) was removed from namespaces array because 0 is
considered false
ERM: #6208
Needs cherry-picking to REL1_23 and REL1_27
Change-Id: Iadd3eaa5de7182442728cc80f3bd520372daaa4a
---
M includes/api/BSApiTitleQueryStore.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceFoundation
refs/changes/19/350419/1
diff --git a/includes/api/BSApiTitleQueryStore.php
b/includes/api/BSApiTitleQueryStore.php
index 970b89e..ad539da 100644
--- a/includes/api/BSApiTitleQueryStore.php
+++ b/includes/api/BSApiTitleQueryStore.php
@@ -49,7 +49,7 @@
} else {
//validate user input
foreach( $aOptions['namespaces'] as $iKey => $iNSId ) {
- if( !$iNSId || !is_numeric( $iNSId ) ) {
+ if( !$iNSId && !is_numeric( $iNSId ) ) {
unset( $aOptions['namespaces'][$iKey] );
continue;
}
--
To view, visit https://gerrit.wikimedia.org/r/350419
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iadd3eaa5de7182442728cc80f3bd520372daaa4a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: ItSpiderman <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits