X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2FSpecialRecentchanges.php;h=2fee735bd9844c97083ab02a5b53a3ff2773358f;hb=206bbe7dc82d8527aa12ab0d5ad21449d7ab3b84;hp=60a04e00a4d20025e673e44279ef8ca1b712ab56;hpb=98611cdd4e7a7c34ba3dcec02dd210157aeecaf1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SpecialRecentchanges.php b/includes/SpecialRecentchanges.php index 60a04e00a4..2fee735bd9 100644 --- a/includes/SpecialRecentchanges.php +++ b/includes/SpecialRecentchanges.php @@ -326,6 +326,13 @@ function rcFilterByCategories ( &$rows , $categories , $any ) { function rcOutputFeed( $rows, $feedFormat, $limit, $hideminor, $lastmod ) { global $messageMemc, $wgFeedCacheTimeout; global $wgFeedClasses, $wgTitle, $wgSitename, $wgContLanguageCode; + global $wgFeed; + + if ( !$wgFeed ) { + global $wgOut; + $wgOut->addWikiMsg( 'feed-unavailable' ); + return; + } if( !isset( $wgFeedClasses[$feedFormat] ) ) { wfHttpError( 500, "Internal Server Error", "Unsupported feed type." );