Mollywhite has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/59367


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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BookManager 
refs/changes/67/59367/1

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: newchange
Gerrit-Change-Id: I4a78426380d8fc4106e57c24e94e7b17749567cc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BookManager
Gerrit-Branch: master
Gerrit-Owner: Mollywhite <[email protected]>

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

Reply via email to