Replace remaining wfMsg* call.
Also remove some trailing whitespace. Change-Id: Ic7a706a894dd07ca638173f2fc6e1695a05f914b
This commit is contained in:
parent
d4eea42233
commit
22a09c87d3
|
@ -63,10 +63,9 @@ class MathHooks {
|
||||||
* @return Boolean: true
|
* @return Boolean: true
|
||||||
*/
|
*/
|
||||||
static function onGetPreferences( $user, &$defaultPreferences ) {
|
static function onGetPreferences( $user, &$defaultPreferences ) {
|
||||||
// @todo FIXME: Replace wfMsgHtml with wfMessage equivalent.
|
|
||||||
$defaultPreferences['math'] = array(
|
$defaultPreferences['math'] = array(
|
||||||
'type' => 'radio',
|
'type' => 'radio',
|
||||||
'options' => array_flip( array_map( 'wfMsgHtml', self::getMathNames() ) ),
|
'options' => array_flip( self::getMathNames() ),
|
||||||
'label' => ' ',
|
'label' => ' ',
|
||||||
'section' => 'rendering/math',
|
'section' => 'rendering/math',
|
||||||
);
|
);
|
||||||
|
@ -80,15 +79,15 @@ class MathHooks {
|
||||||
*/
|
*/
|
||||||
private static function getMathNames() {
|
private static function getMathNames() {
|
||||||
$names = array(
|
$names = array(
|
||||||
MW_MATH_PNG => 'mw_math_png',
|
MW_MATH_PNG => wfMessage( 'mw_math_png' )->escaped(),
|
||||||
MW_MATH_SOURCE => 'mw_math_source',
|
MW_MATH_SOURCE => wfMessage( 'mw_math_source' )->escaped(),
|
||||||
);
|
);
|
||||||
|
|
||||||
global $wgUseMathJax;
|
global $wgUseMathJax;
|
||||||
if( $wgUseMathJax ) {
|
if( $wgUseMathJax ) {
|
||||||
$names[MW_MATH_MATHJAX] = 'mw_math_mathjax';
|
$names[MW_MATH_MATHJAX] = wfMessage( 'mw_math_mathjax' )->escaped();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $names;
|
return $names;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue