static function intFunction( $parser, $part1 = '' /*, ... */ ) {
if ( strval( $part1 ) !== '' ) {
$args = array_slice( func_get_args(), 2 );
- $message = wfMsgGetKey( $part1, true, $parser->mOptions->getUserLang(), false );
+ $message = wfMsgGetKey( $part1, true, $parser->getOptions()->getUserLang(), false );
$message = wfMsgReplaceArgs( $message, $args );
$message = $parser->replaceVariables( $message ); // like $wgMessageCache->transform()
return $message;
return $this->mTimestamp;
}
- # You shouldn't use this. Really. $parser->getFunctionLang() is all you need.
- # Using this fragments the cache and is discouraged. Yes, {{int: }} uses this,
- # producing inconsistent tables (Bug 14404).
+ /**
+ * You shouldn't use this. Really. $parser->getFunctionLang() is all you need.
+ * Using this fragments the cache and is discouraged. Yes, {{int: }} uses this,
+ * producing inconsistent tables (Bug 14404).
+ */
function getUserLang() {
$this->accessedOptions['userlang'] = true;
return $this->mUserLang;