aboutsummaryrefslogtreecommitdiffstats
path: root/includes/ChangesFeed.php
diff options
context:
space:
mode:
authorSam Reed <reedy@users.mediawiki.org>2011-08-19 23:30:12 +0000
committerSam Reed <reedy@users.mediawiki.org>2011-08-19 23:30:12 +0000
commitead951a4ad6782b21497c586e8b32fe7400c80c1 (patch)
treef11e8581ebe3711f5939f67f11a6eef7d352d949 /includes/ChangesFeed.php
parentb1968df5f94102da2d8a5f554982e6d622020081 (diff)
downloadmediawikicore-ead951a4ad6782b21497c586e8b32fe7400c80c1.tar.gz
mediawikicore-ead951a4ad6782b21497c586e8b32fe7400c80c1.zip
Couple more pieces of wikia upstreaming
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/95059
Diffstat (limited to 'includes/ChangesFeed.php')
-rw-r--r--includes/ChangesFeed.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/ChangesFeed.php b/includes/ChangesFeed.php
index c4c4a8a1be05..bcedf2f3292c 100644
--- a/includes/ChangesFeed.php
+++ b/includes/ChangesFeed.php
@@ -34,6 +34,11 @@ class ChangesFeed {
return false;
}
+ if( !array_key_exists( $this->format, $wgFeedClasses ) ) {
+ // falling back to atom
+ $this->format = 'atom';
+ }
+
$feedTitle = "$wgSitename - {$title} [$wgLanguageCode]";
return new $wgFeedClasses[$this->format](
$feedTitle, htmlspecialchars( $description ), $url );