Index: trunk/extensions/BookManager/BookManager.body.php |
— | — | @@ -278,7 +278,7 @@ |
279 | 279 | */ |
280 | 280 | |
281 | 281 | static function addText( &$out, &$text ) { |
282 | | - global $wgTitle, $wgParser, $wgScriptPath; |
| 282 | + global $wgTitle, $wgParser, $wgBookManagerNamespaces; |
283 | 283 | $ns = $wgTitle->getNamespace(); |
284 | 284 | $opt = array( |
285 | 285 | 'parseinline', |
— | — | @@ -290,8 +290,7 @@ |
291 | 291 | $basetext = ( $base !== '' ) ? Title::newFromText( $base )->getSubpageText(): '' ; |
292 | 292 | $prevtext = ( $prev !== '' ) ? Title::newFromText( $prev )->getSubpageText(): '' ; |
293 | 293 | $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() ) { |
296 | 295 | $BookManager = wfMsgExt( "BookManager", $opt, $prev, $prevtext, $base, $basetext, $next, $nexttext ); |
297 | 296 | $BookManagerTop = wfMsgExt( "BookManager-top", $opt, $prev, $prevtext, $base, $basetext, $next, $nexttext ); |
298 | 297 | $BookManagerBottom = wfMsgExt( "BookManager-bottom", $opt, $prev, $prevtext, $base, $basetext, $next, $nexttext ); |