r83164 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83163‎ | r83164 | r83165 >
Date:19:50, 3 March 2011
Author:raylton.sousa
Status:deferred
Tags:
Comment:
correcting error in r83149
Modified paths:
  • /trunk/extensions/BookManager/BookManager.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/BookManager/BookManager.body.php
@@ -278,7 +278,7 @@
279279 */
280280
281281 static function addText( &$out, &$text ) {
282 - global $wgTitle, $wgParser, $wgScriptPath;
 282+ global $wgTitle, $wgParser, $wgBookManagerNamespaces;
283283 $ns = $wgTitle->getNamespace();
284284 $opt = array(
285285 'parseinline',
@@ -290,8 +290,7 @@
291291 $basetext = ( $base !== '' ) ? Title::newFromText( $base )->getSubpageText(): '' ;
292292 $prevtext = ( $prev !== '' ) ? Title::newFromText( $prev )->getSubpageText(): '' ;
293293 $nexttext = ( $next !== '' ) ? Title::newFromText( $next )->getSubpageText(): '' ;
294 - $wgFeedbackNamespaces = array( NS_MAIN );
295 - if ( $ns === $wgFeedbackNamespaces && self::isViewAction() ) {
 294+ if ( in_array($ns,$wgBookManagerNamespaces) && self::isViewAction() ) {
296295 $BookManager = wfMsgExt( "BookManager", $opt, $prev, $prevtext, $base, $basetext, $next, $nexttext );
297296 $BookManagerTop = wfMsgExt( "BookManager-top", $opt, $prev, $prevtext, $base, $basetext, $next, $nexttext );
298297 $BookManagerBottom = wfMsgExt( "BookManager-bottom", $opt, $prev, $prevtext, $base, $basetext, $next, $nexttext );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r83149solving inconsistencies that made the navigation bar appears on the page whil...raylton.sousa15:41, 3 March 2011

Status & tagging log