Index: trunk/phase3/includes/parser/CoreParserFunctions.php |
— | — | @@ -86,7 +86,7 @@ |
87 | 87 | static function intFunction( $parser, $part1 = '' /*, ... */ ) { |
88 | 88 | if ( strval( $part1 ) !== '' ) { |
89 | 89 | $args = array_slice( func_get_args(), 2 ); |
90 | | - $message = wfMsgGetKey( $part1, true, $parser->mOptions->getUserLang(), false ); |
| 90 | + $message = wfMsgGetKey( $part1, true, $parser->getOptions()->getUserLang(), false ); |
91 | 91 | $message = wfMsgReplaceArgs( $message, $args ); |
92 | 92 | $message = $parser->replaceVariables( $message ); // like $wgMessageCache->transform() |
93 | 93 | return $message; |
Index: trunk/phase3/includes/parser/ParserOptions.php |
— | — | @@ -103,9 +103,11 @@ |
104 | 104 | return $this->mTimestamp; |
105 | 105 | } |
106 | 106 | |
107 | | - # You shouldn't use this. Really. $parser->getFunctionLang() is all you need. |
108 | | - # Using this fragments the cache and is discouraged. Yes, {{int: }} uses this, |
109 | | - # producing inconsistent tables (Bug 14404). |
| 107 | + /** |
| 108 | + * You shouldn't use this. Really. $parser->getFunctionLang() is all you need. |
| 109 | + * Using this fragments the cache and is discouraged. Yes, {{int: }} uses this, |
| 110 | + * producing inconsistent tables (Bug 14404). |
| 111 | + */ |
110 | 112 | function getUserLang() { |
111 | 113 | $this->accessedOptions['userlang'] = true; |
112 | 114 | return $this->mUserLang; |