Index: trunk/extensions/FeaturedFeeds/FeaturedFeeds.body.php |
— | — | @@ -250,6 +250,7 @@ |
251 | 251 | private $items = false; |
252 | 252 | private $page = false; |
253 | 253 | private $entryName; |
| 254 | + private $titleForParse; |
254 | 255 | |
255 | 256 | public $title = false; |
256 | 257 | public $shortTitle; |
— | — | @@ -373,8 +374,13 @@ |
374 | 375 | $this->name . '/' . wfTimestamp( TS_MW, $date ) . '/' . $this->language->getCode() |
375 | 376 | )->getFullURL(); |
376 | 377 | |
| 378 | + if ( !isset( $this->titleForParse ) ) { |
| 379 | + // parsing with such title makes stuff like {{CURRENTMONTH}} localised |
| 380 | + $this->titleForParse = Title::newFromText( 'MediaWiki:Dummy/' . $this->language->getCode() ); |
| 381 | + } |
| 382 | + |
377 | 383 | return new FeaturedFeedItem( |
378 | | - self::$parser->transformMsg( $this->entryName, self::$parserOptions ), |
| 384 | + self::$parser->transformMsg( $this->entryName, self::$parserOptions, $this->titleForParse ), |
379 | 385 | wfExpandUrl( $url ), |
380 | 386 | $text, |
381 | 387 | $date |