r91067 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91066‎ | r91067 | r91068 >
Date:10:58, 29 June 2011
Author:ialex
Status:ok
Tags:
Comment:
Pass the Title object to Parser::transformMsg()
Modified paths:
  • /trunk/phase3/tests/parser/parserTest.inc (modified) (history)
  • /trunk/phase3/tests/phpunit/includes/parser/NewParserTest.php (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/phpunit/includes/parser/NewParserTest.php
@@ -496,7 +496,7 @@
497497 if ( isset( $opts['pst'] ) ) {
498498 $out = $parser->preSaveTransform( $input, $title, $user, $options );
499499 } elseif ( isset( $opts['msg'] ) ) {
500 - $out = $parser->transformMsg( $input, $options );
 500+ $out = $parser->transformMsg( $input, $options, $title );
501501 } elseif ( isset( $opts['section'] ) ) {
502502 $section = $opts['section'];
503503 $out = $parser->getSection( $input, $section );
Index: trunk/phase3/tests/parser/parserTest.inc
@@ -445,7 +445,7 @@
446446 if ( isset( $opts['pst'] ) ) {
447447 $out = $parser->preSaveTransform( $input, $title, $user, $options );
448448 } elseif ( isset( $opts['msg'] ) ) {
449 - $out = $parser->transformMsg( $input, $options );
 449+ $out = $parser->transformMsg( $input, $options, $title );
450450 } elseif ( isset( $opts['section'] ) ) {
451451 $section = $opts['section'];
452452 $out = $parser->getSection( $input, $section );

Status & tagging log