Index: trunk/phase3/includes/parser/CoreParserFunctions.php |
— | — | @@ -56,7 +56,10 @@ |
57 | 57 | static function intFunction( $parser, $part1 = '' /*, ... */ ) { |
58 | 58 | if ( strval( $part1 ) !== '' ) { |
59 | 59 | $args = array_slice( func_get_args(), 2 ); |
60 | | - return wfMsgReal( $part1, $args, true ); |
| 60 | + $message = wfMsgGetKey( $part1, true, false, false ); |
| 61 | + $message = $parser->replaceVariables( $message ); // like $wgMessageCache->transform() |
| 62 | + $message = wfMsgReplaceArgs( $message, $args ); |
| 63 | + return $message; |
61 | 64 | } else { |
62 | 65 | return array( 'found' => false ); |
63 | 66 | } |