I'm not touching the accesses from the preprocessors since
I don't know if the call could add a penalty.
$date = trim( $date );
- $pref = $parser->mOptions->getDateFormat();
+ $pref = $parser->getOptions()->getDateFormat();
// Specify a different default date format other than the the normal default
// iff the user has 'default' for their setting
$user = User::newFromName( $user );
if ( $user ) {
$gender = $user->getOption( 'gender' );
- } elseif ( $parser->mOptions->getInterfaceMessage() ) {
+ } elseif ( $parser->getOptions()->getInterfaceMessage() ) {
global $wgUser;
$gender = $wgUser->getOption( 'gender' );
}
static function math( $content, $attributes, $parser ) {
global $wgContLang;
- return $wgContLang->armourMath( MathRenderer::renderMath( $content, $attributes, $parser->mOptions ) );
+ return $wgContLang->armourMath( MathRenderer::renderMath( $content, $attributes, $parser->getOptions() ) );
}
static function gallery( $content, $attributes, $parser ) {