Aaron Schulz has uploaded a new change for review.
https://gerrit.wikimedia.org/r/72111
Change subject: Fixed return type of getContentNamespaces()
......................................................................
Fixed return type of getContentNamespaces()
Change-Id: I3e1717c3a7b3f9d7fa7fd823b5d3143a679b0d3d
---
M includes/Namespace.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/11/72111/1
diff --git a/includes/Namespace.php b/includes/Namespace.php
index 8001b41..5c8e63b 100644
--- a/includes/Namespace.php
+++ b/includes/Namespace.php
@@ -334,7 +334,7 @@
public static function getContentNamespaces() {
global $wgContentNamespaces;
if ( !is_array( $wgContentNamespaces ) || $wgContentNamespaces
=== array() ) {
- return NS_MAIN;
+ return array( NS_MAIN );
} elseif ( !in_array( NS_MAIN, $wgContentNamespaces ) ) {
// always force NS_MAIN to be part of array (to match
the algorithm used by isContent)
return array_merge( array( NS_MAIN ),
$wgContentNamespaces );
--
To view, visit https://gerrit.wikimedia.org/r/72111
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3e1717c3a7b3f9d7fa7fd823b5d3143a679b0d3d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits