Index: trunk/extensions/WikiArticleFeeds/WikiArticleFeeds_body.php |
— | — | @@ -3,13 +3,7 @@ |
4 | 4 | class WikiArticleFeeds{ |
5 | 5 | |
6 | 6 | function feedStart( $text, $params = array(), Parser $parser ) { |
7 | | - global $wgWikiArticleFeedsTrackingCategory; |
8 | | - |
9 | | - if ( $wgWikiArticleFeedsTrackingCategory === true ) { |
10 | | - $parser->addTrackingCategory( 'wikiarticlefeeds-tracking-category' ); |
11 | | - } elseif ( is_string( $wgWikiArticleFeedsTrackingCategory ) ) { |
12 | | - $parser->addTrackingCategory( $wgWikiArticleFeedsTrackingCategory ); |
13 | | - } |
| 7 | + $parser->addTrackingCategory( 'wikiarticlefeeds-tracking-category' ); |
14 | 8 | return '<!-- FEED_START -->'; |
15 | 9 | } |
16 | 10 | |
Index: trunk/extensions/WikiArticleFeeds/WikiArticleFeeds.php |
— | — | @@ -4,7 +4,7 @@ |
5 | 5 | * @author Jim R. Wilson, Thomas Gries |
6 | 6 | * @maintainer Thomas Gries |
7 | 7 | * |
8 | | - * @version 0.703 |
| 8 | + * @version 0.71 |
9 | 9 | * @copyright Copyright (C) 2007 Jim R. Wilson |
10 | 10 | * @copyright Copyright (C) 2012 Thomas Gries |
11 | 11 | * @license The MIT License - http://www.opensource.org/licenses/mit-license.php |
— | — | @@ -56,6 +56,7 @@ |
57 | 57 | * |
58 | 58 | * Versions |
59 | 59 | * |
| 60 | + * 0.71 removed $wgWikiArticleFeedsTrackingCategory parameter for tracking category |
60 | 61 | * 0.703 adds the feed icon to the bottom of the toolbox in Monobook or like-minded skins. |
61 | 62 | * 0.701 version string constant renamed to make it wiki-unique |
62 | 63 | * 0.700 rewritten into a four-file version with class |
— | — | @@ -124,7 +125,7 @@ |
125 | 126 | die( "This is not a valid entry point.\n" ); |
126 | 127 | } |
127 | 128 | |
128 | | -define( 'EXTENSION_WIKIARTICLEFEEDS_VERSION', '0.703 20120312' ); |
| 129 | +define( 'EXTENSION_WIKIARTICLEFEEDS_VERSION', '0.71 20120319' ); |
129 | 130 | |
130 | 131 | # Bring in supporting classes |
131 | 132 | require_once( "$IP/includes/Feed.php" ); |
— | — | @@ -158,16 +159,3 @@ |
159 | 160 | |
160 | 161 | $wgWikiArticleFeeds = new WikiArticleFeeds(); |
161 | 162 | $wgHooks['ParserBeforeTidy'][] = array( $wgWikiArticleFeeds, 'WikiArticleFeeds::itemTagsPlaceholderCorrections' ); |
162 | | - |
163 | | -// Parameter to enable the automatic tracking category |
164 | | -// for all pages using this parser extension |
165 | | -// |
166 | | -// Category name [[MediaWiki:Wikiarticlefeeds-tracking-category]] (default) |
167 | | -// $wgWikiArticleFeedsTrackingCategory = true; |
168 | | -// |
169 | | -// you can assign a specific category name [[MediaWiki:Wikiarticlefeeds-mycategory]] |
170 | | -// $wgWikiArticleFeedsTrackingCategory = 'wikiarticlefeeds-mycategory'; |
171 | | -// |
172 | | -// you can disable the use of a tracking category |
173 | | -// $wgWikiArticleFeedsTrackingCategory = false; |
174 | | -$wgWikiArticleFeedsTrackingCategory = true; |