From ed779ae90a31bbd752a244a3f95172b7556ce848 Mon Sep 17 00:00:00 2001 From: Platonides Date: Fri, 15 Oct 2010 23:10:05 +0000 Subject: [PATCH] Use the accessor for getting mOptions. I'm not touching the accesses from the preprocessors since I don't know if the call could add a penalty. --- includes/parser/CoreParserFunctions.php | 4 ++-- includes/parser/CoreTagHooks.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/parser/CoreParserFunctions.php b/includes/parser/CoreParserFunctions.php index d147a62b4a..bf36ea7176 100644 --- a/includes/parser/CoreParserFunctions.php +++ b/includes/parser/CoreParserFunctions.php @@ -101,7 +101,7 @@ class CoreParserFunctions { $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 @@ -250,7 +250,7 @@ class CoreParserFunctions { $user = User::newFromName( $user ); if ( $user ) { $gender = $user->getOption( 'gender' ); - } elseif ( $parser->mOptions->getInterfaceMessage() ) { + } elseif ( $parser->getOptions()->getInterfaceMessage() ) { global $wgUser; $gender = $wgUser->getOption( 'gender' ); } diff --git a/includes/parser/CoreTagHooks.php b/includes/parser/CoreTagHooks.php index e028675a97..33f3c824e5 100644 --- a/includes/parser/CoreTagHooks.php +++ b/includes/parser/CoreTagHooks.php @@ -49,7 +49,7 @@ class CoreTagHooks { 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 ) { -- 2.20.1