From: Chad Horohoe Date: Thu, 30 Jun 2011 18:16:45 +0000 (+0000) Subject: Move $wgFeedClasses to DefaultSettings where they belong. This has been bothering... X-Git-Tag: 1.31.0-rc.0~29153 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=bc827cace591507976ef230681851a6853513f6d;p=lhc%2Fweb%2Fwiklou.git Move $wgFeedClasses to DefaultSettings where they belong. This has been bothering me for years. Somewhat in the spirit of r87637, except I didn't put them in WebStart because that doesn't make sense. --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index d145f5ee12..debae38ef8 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -4372,6 +4372,16 @@ $wgFeedDiffCutoff = 32768; */ $wgOverrideSiteFeed = array(); +/** + * Available feeds objects + * Should probably only be defined when a page is syndicated ie when + * $wgOut->isSyndicated() is true + */ +$wgFeedClasses = array( + 'rss' => 'RSSFeed', + 'atom' => 'AtomFeed', +); + /** * Which feed types should we provide by default? This can include 'rss', * 'atom', neither, or both. diff --git a/includes/Defines.php b/includes/Defines.php index a9b2e56512..0252c402c5 100644 --- a/includes/Defines.php +++ b/includes/Defines.php @@ -85,16 +85,6 @@ define( 'NS_IMAGE', NS_FILE ); define( 'NS_IMAGE_TALK', NS_FILE_TALK ); /**@}*/ -/** - * Available feeds objects - * Should probably only be defined when a page is syndicated ie when - * $wgOut->isSyndicated() is true - */ -$wgFeedClasses = array( - 'rss' => 'RSSFeed', - 'atom' => 'AtomFeed', -); - /**@{ * Cache type */