Index: trunk/extensions/Contest/includes/ContestContestant.php |
— | — | @@ -480,7 +480,7 @@ |
481 | 481 | global $wgPasswordSender, $wgPasswordSenderName, $wgParser; |
482 | 482 | |
483 | 483 | $title = wfMsg( 'contest-email-signup-title' ); |
484 | | - $emailText = $wgParser->parse( $this->getArticleContent( $this->getContest()->getField( 'signup_email' ) ) ); |
| 484 | + $emailText = $wgParser->parse( $this->getParsedArticleContent( $this->getContest()->getField( 'signup_email' ) ) ); |
485 | 485 | $user = $this->getUser(); |
486 | 486 | $sender = $wgPasswordSender; |
487 | 487 | $senderName = $wgPasswordSenderName; |
— | — | @@ -507,7 +507,7 @@ |
508 | 508 | * |
509 | 509 | * @return string |
510 | 510 | */ |
511 | | - protected function getArticleContent( $pageName ) { |
| 511 | + protected function getParsedArticleContent( $pageName ) { |
512 | 512 | $title = Title::newFromText( $pageName ); |
513 | 513 | |
514 | 514 | if ( is_null( $title ) ) { |
— | — | @@ -515,7 +515,13 @@ |
516 | 516 | } |
517 | 517 | |
518 | 518 | $article = new Article( $title, 0 ); |
519 | | - return $article->getContent(); |
| 519 | + |
| 520 | + global $wgParser; |
| 521 | + return $wgParser->parse( |
| 522 | + $article->getContent(), |
| 523 | + $article->getTitle(), |
| 524 | + $article->getParserOptions() |
| 525 | + ); |
520 | 526 | } |
521 | 527 | |
522 | 528 | /** |