Index: trunk/extensions/FeaturedFeeds/FeaturedFeeds.body.php |
— | — | @@ -108,7 +108,10 @@ |
109 | 109 | public static function skinTemplateOutputPageBeforeExec( &$sk, &$tpl ) { |
110 | 110 | global $wgDisplayFeedsInSidebar, $wgAdvertisedFeedTypes; |
111 | 111 | |
112 | | - if ( $wgDisplayFeedsInSidebar && $sk->getContext()->getTitle()->isMainPage() ) { |
| 112 | + if ( ( $wgDisplayFeedsInSidebar |
| 113 | + || !wfMessage( 'ffeed-enable-sidebar-links' )->inContentLanguage()->isDisabled() ) |
| 114 | + && $sk->getContext()->getTitle()->isMainPage() ) |
| 115 | + { |
113 | 116 | $feeds = self::getFeeds( $sk->getContext()->getLanguage()->getCode() ); |
114 | 117 | $links = array(); |
115 | 118 | $format = $wgAdvertisedFeedTypes[0]; // @fixme: |
Index: trunk/extensions/FeaturedFeeds/FeaturedFeeds.i18n.php |
— | — | @@ -18,6 +18,7 @@ |
19 | 19 | 'ffeed-entry-not-found' => 'Feed entry for $1 not found', |
20 | 20 | 'ffeed-sidebar-section' => 'Featured content feeds', |
21 | 21 | 'ffeed-invalid-timestamp' => 'Invalid feed timestamp', |
| 22 | + 'ffeed-enable-sidebar-links' => '-', # do not localise |
22 | 23 | |
23 | 24 | # Featured Article |
24 | 25 | 'ffeed-featured-page' => '', # do not localise |