Raylton P. Sousa has submitted this change and it was merged.

Change subject: (bug 30994) Use wgContentNamespaces instead of NS_MAIN for 
wgBookManagerNamespaces.
......................................................................


(bug 30994) Use wgContentNamespaces instead of NS_MAIN for 
wgBookManagerNamespaces.

Because some wikis use other namespaces than "main" for their content, the 
wgContentNamespaces variable is more appropriate.

Bug: 30994
Change-Id: I4a78426380d8fc4106e57c24e94e7b17749567cc
---
M BookManager.php
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Raylton P. Sousa: Verified; Looks good to me, approved



diff --git a/BookManager.php b/BookManager.php
index 8ea3a94..3d4696c 100644
--- a/BookManager.php
+++ b/BookManager.php
@@ -24,8 +24,10 @@
 if ( !defined( 'MEDIAWIKI' ) ) {
        die( 'This file is a MediaWiki extension, it is not a valid entry 
point' );
 }
+global $wgContentNamespaces;
+
 $wgBookSidebarSection = true;
-$wgBookManagerNamespaces = array( NS_MAIN );
+$wgBookManagerNamespaces = $wgContentNamespaces;
 $wgBookManagerVariables = true ;
 $wgBookManagerNavBar = true;
 $wgCategorizeSubPages = true;

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I4a78426380d8fc4106e57c24e94e7b17749567cc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BookManager
Gerrit-Branch: master
Gerrit-Owner: Mollywhite <[email protected]>
Gerrit-Reviewer: MarkTraceur <[email protected]>
Gerrit-Reviewer: Raylton P. Sousa <[email protected]>

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

Reply via email to