Index: trunk/phase3/includes/ChangesFeed.php |
— | — | @@ -12,7 +12,8 @@ |
13 | 13 | public function getFeedObject( $title, $description ) { |
14 | 14 | global $wgSitename, $wgContLanguageCode, $wgFeedClasses, $wgTitle; |
15 | 15 | $feedTitle = "$wgSitename - {$title} [$wgContLanguageCode]"; |
16 | | - |
| 16 | + if( !isset($wgFeedClasses[$this->format] ) ) |
| 17 | + return false; |
17 | 18 | return new $wgFeedClasses[$this->format]( |
18 | 19 | $feedTitle, htmlspecialchars( $description ), $wgTitle->getFullUrl() ); |
19 | 20 | } |