Index: trunk/phase3/includes/Defines.php |
— | — | @@ -52,4 +52,14 @@ |
53 | 53 | define('NS_WIKIPEDIA', NS_PROJECT); |
54 | 54 | define('NS_WIKIPEDIA_TALK', NS_PROJECT_TALK); |
55 | 55 | /**#@-*/ |
| 56 | + |
| 57 | +/** |
| 58 | + * Available feeds objects |
| 59 | + * Should probably only be defined when a page is syndicated ie when |
| 60 | + * $wgOut->isSyndicated() is true |
| 61 | + */ |
| 62 | +$wgFeedClasses = array( |
| 63 | + 'rss' => 'RSSFeed', |
| 64 | + 'atom' => 'AtomFeed', |
| 65 | + ); |
56 | 66 | ?> |
Index: trunk/phase3/includes/Feed.php |
— | — | @@ -22,16 +22,10 @@ |
23 | 23 | |
24 | 24 | /** |
25 | 25 | * Contain a feed class as well as classes to build rss / atom ... feeds |
| 26 | + * Available feeds are defined in Defines.php |
26 | 27 | * @package MediaWiki |
27 | 28 | */ |
28 | 29 | |
29 | | -/** |
30 | | - * Available feeds objects |
31 | | - */ |
32 | | -$wgFeedClasses = array( |
33 | | - 'rss' => 'RSSFeed', |
34 | | - 'atom' => 'AtomFeed', |
35 | | - ); |
36 | 30 | |
37 | 31 | /** |
38 | 32 | * @todo document |
Index: trunk/phase3/includes/Skin.php |
— | — | @@ -11,8 +11,6 @@ |
12 | 12 | if( defined( "MEDIAWIKI" ) ) { |
13 | 13 | |
14 | 14 | # See skin.doc |
15 | | - |
16 | | -require_once( 'Feed.php' ); // should not be called if the actual page isn't feed enabled |
17 | 15 | require_once( 'Image.php' ); |
18 | 16 | |
19 | 17 | # These are the INTERNAL names, which get mapped directly to class names and |