Replace arguments before replacing variables in {{int:...}} parser function, for...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 28 Aug 2008 08:08:31 +0000 (08:08 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 28 Aug 2008 08:08:31 +0000 (08:08 +0000)
includes/parser/CoreParserFunctions.php

index 3a991d5..796df98 100644 (file)
@@ -58,8 +58,8 @@ class CoreParserFunctions {
                if ( strval( $part1 ) !== '' ) {
                        $args = array_slice( func_get_args(), 2 );
                        $message = wfMsgGetKey( $part1, true, false, false );
-                       $message = $parser->replaceVariables( $message ); // like $wgMessageCache->transform()
                        $message = wfMsgReplaceArgs( $message, $args );
+                       $message = $parser->replaceVariables( $message ); // like $wgMessageCache->transform()
                        return $message;
                } else {
                        return array( 'found' => false );