| Index: trunk/extensions/BookManager/BookManager.body.php |
| — | — | @@ -290,8 +290,8 @@ |
| 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 | | - |
| 295 | | - if ( $ns === 0 && self::isViewAction() ) { |
| | 294 | + $wgFeedbackNamespaces = array( NS_MAIN ); |
| | 295 | + if ( $ns === $wgFeedbackNamespaces && self::isViewAction() ) { |
| 296 | 296 | $BookManager = wfMsgExt( "BookManager", $opt, $prev, $prevtext, $base, $basetext, $next, $nexttext ); |
| 297 | 297 | $BookManagerTop = wfMsgExt( "BookManager-top", $opt, $prev, $prevtext, $base, $basetext, $next, $nexttext ); |
| 298 | 298 | $BookManagerBottom = wfMsgExt( "BookManager-bottom", $opt, $prev, $prevtext, $base, $basetext, $next, $nexttext ); |
| Index: trunk/extensions/BookManager/BookManager.php |
| — | — | @@ -57,7 +57,7 @@ |
| 58 | 58 | 'localBasePath' => $dir, |
| 59 | 59 | 'remoteExtPath' => 'BookManager' |
| 60 | 60 | ); |
| 61 | | - |
| | 61 | +$wgBookManagerNamespaces = array( NS_MAIN ); |
| 62 | 62 | /* Copyied from extensions/Collection/Collection.php */ |
| 63 | 63 | /** Namespace for "community books" */ |
| 64 | 64 | $wgCommunityCollectionNamespace = NS_PROJECT; |