From 22a09c87d3895c6e23dab09539ff5887c24eb81f Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Thu, 4 Oct 2012 14:11:36 +0200 Subject: [PATCH] Replace remaining wfMsg* call. Also remove some trailing whitespace. Change-Id: Ic7a706a894dd07ca638173f2fc6e1695a05f914b --- Math.hooks.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Math.hooks.php b/Math.hooks.php index d66e638..635fefb 100644 --- a/Math.hooks.php +++ b/Math.hooks.php @@ -63,10 +63,9 @@ class MathHooks { * @return Boolean: true */ static function onGetPreferences( $user, &$defaultPreferences ) { - // @todo FIXME: Replace wfMsgHtml with wfMessage equivalent. $defaultPreferences['math'] = array( 'type' => 'radio', - 'options' => array_flip( array_map( 'wfMsgHtml', self::getMathNames() ) ), + 'options' => array_flip( self::getMathNames() ), 'label' => ' ', 'section' => 'rendering/math', ); @@ -80,15 +79,15 @@ class MathHooks { */ private static function getMathNames() { $names = array( - MW_MATH_PNG => 'mw_math_png', - MW_MATH_SOURCE => 'mw_math_source', + MW_MATH_PNG => wfMessage( 'mw_math_png' )->escaped(), + MW_MATH_SOURCE => wfMessage( 'mw_math_source' )->escaped(), ); global $wgUseMathJax; if( $wgUseMathJax ) { - $names[MW_MATH_MATHJAX] = 'mw_math_mathjax'; + $names[MW_MATH_MATHJAX] = wfMessage( 'mw_math_mathjax' )->escaped(); } - + return $names; }