r99416 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99415‎ | r99416 | r99417 >
Date:18:36, 10 October 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Follow up to r99413;
Modified paths:
  • /trunk/extensions/Contest/includes/ContestContestant.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Contest/includes/ContestContestant.php
@@ -480,7 +480,7 @@
481481 global $wgPasswordSender, $wgPasswordSenderName, $wgParser;
482482
483483 $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' ) ) );
485485 $user = $this->getUser();
486486 $sender = $wgPasswordSender;
487487 $senderName = $wgPasswordSenderName;
@@ -507,7 +507,7 @@
508508 *
509509 * @return string
510510 */
511 - protected function getArticleContent( $pageName ) {
 511+ protected function getParsedArticleContent( $pageName ) {
512512 $title = Title::newFromText( $pageName );
513513
514514 if ( is_null( $title ) ) {
@@ -515,7 +515,13 @@
516516 }
517517
518518 $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+ );
520526 }
521527
522528 /**

Follow-up revisions

RevisionCommit summaryAuthorDate
r99417Follow up to r99416;jeroendedauw18:37, 10 October 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r99413added fields for email pagesjeroendedauw18:11, 10 October 2011

Status & tagging log