Replace remaining wfMsg* call.

Also remove some trailing whitespace.

Change-Id: Ic7a706a894dd07ca638173f2fc6e1695a05f914b
This commit is contained in:
Siebrand Mazeland 2012-10-04 14:11:36 +02:00
parent d4eea42233
commit 22a09c87d3
1 changed files with 5 additions and 6 deletions

View File

@ -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;
}