Followup r89562, use 'feedformat' not 'feed'
authorSam Reed <reedy@users.mediawiki.org>
Mon, 13 Jun 2011 21:35:23 +0000 (21:35 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Mon, 13 Jun 2011 21:35:23 +0000 (21:35 +0000)
includes/api/ApiFeedWatchlist.php

index adae8b2..5e83b30 100644 (file)
@@ -65,7 +65,7 @@ class ApiFeedWatchlist extends ApiBase {
                                $this->dieUsage( 'Syndication feeds are not available', 'feed-unavailable' );
                        }
 
-                       if( !isset( $wgFeedClasses[ $params['feed'] ] ) ) {
+                       if( !isset( $wgFeedClasses[ $params['feedformat'] ] ) ) {
                                $this->dieUsage( 'Invalid subscription feed type', 'feed-invalid' );
                        }