Index: trunk/extensions/FeaturedFeeds/ApiFeaturedFeeds.php |
— | — | @@ -28,8 +28,7 @@ |
29 | 29 | |
30 | 30 | $language = isset( $params['language'] ) ? $params['language'] : false; |
31 | 31 | if ( $language !== false && !Language::isValidCode( $language ) ) { |
32 | | - wfProfileOut( __METHOD__ ); |
33 | | - $this->dieUsage( 'Invalid language code', 'language-invalid' ); |
| 32 | + $language = false; |
34 | 33 | } |
35 | 34 | $feeds = FeaturedFeeds::getFeeds( $language ); |
36 | 35 | $ourFeed = $feeds[$params['feed']]; |
— | — | @@ -72,7 +71,6 @@ |
73 | 72 | return array( |
74 | 73 | 'feedformat' => 'The format of the feed', |
75 | 74 | 'feed' => 'Feed name', |
76 | | - 'language' => 'Feed language code. Ignored by some feeds.' |
77 | 75 | ); |
78 | 76 | } |
79 | 77 | |