r83150 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83149‎ | r83150 | r83151 >
Date:17:06, 3 March 2011
Author:raylton.sousa
Status:deferred
Tags:
Comment:
adding variables to configure namesapaces
Modified paths:
  • /trunk/extensions/BookManager/BookManager.body.php (modified) (history)
  • /trunk/extensions/BookManager/BookManager.php (modified) (history)

Diff [purge]

Index: trunk/extensions/BookManager/BookManager.body.php
@@ -290,8 +290,8 @@
291291 $basetext = ( $base !== '' ) ? Title::newFromText( $base )->getSubpageText(): '' ;
292292 $prevtext = ( $prev !== '' ) ? Title::newFromText( $prev )->getSubpageText(): '' ;
293293 $nexttext = ( $next !== '' ) ? Title::newFromText( $next )->getSubpageText(): '' ;
294 -
295 - if ( $ns === 0 && self::isViewAction() ) {
 294+ $wgFeedbackNamespaces = array( NS_MAIN );
 295+ if ( $ns === $wgFeedbackNamespaces && self::isViewAction() ) {
296296 $BookManager = wfMsgExt( "BookManager", $opt, $prev, $prevtext, $base, $basetext, $next, $nexttext );
297297 $BookManagerTop = wfMsgExt( "BookManager-top", $opt, $prev, $prevtext, $base, $basetext, $next, $nexttext );
298298 $BookManagerBottom = wfMsgExt( "BookManager-bottom", $opt, $prev, $prevtext, $base, $basetext, $next, $nexttext );
Index: trunk/extensions/BookManager/BookManager.php
@@ -57,7 +57,7 @@
5858 'localBasePath' => $dir,
5959 'remoteExtPath' => 'BookManager'
6060 );
61 -
 61+$wgBookManagerNamespaces = array( NS_MAIN );
6262 /* Copyied from extensions/Collection/Collection.php */
6363 /** Namespace for "community books" */
6464 $wgCommunityCollectionNamespace = NS_PROJECT;

Status & tagging log