Use the accessor for getting mOptions.
authorPlatonides <platonides@users.mediawiki.org>
Fri, 15 Oct 2010 23:10:05 +0000 (23:10 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Fri, 15 Oct 2010 23:10:05 +0000 (23:10 +0000)
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
includes/parser/CoreTagHooks.php

index d147a62..bf36ea7 100644 (file)
@@ -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' );
                }
index e028675..33f3c82 100644 (file)
@@ -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 ) {