Index: trunk/phase3/includes/Preferences.php |
— | — | @@ -17,6 +17,7 @@ |
18 | 18 | |
19 | 19 | self::profilePreferences( $user, $defaultPreferences ); |
20 | 20 | self::skinPreferences( $user, $defaultPreferences ); |
| 21 | + self::mathPreferences( $user, $defaultPreferences ); |
21 | 22 | self::filesPreferences( $user, $defaultPreferences ); |
22 | 23 | self::datetimePreferences( $user, $defaultPreferences ); |
23 | 24 | self::renderingPreferences( $user, $defaultPreferences ); |
— | — | @@ -390,6 +391,21 @@ |
391 | 392 | } |
392 | 393 | } |
393 | 394 | |
| 395 | + static function mathPreferences( $user, &$defaultPreferences ) { |
| 396 | + ## Math ##################################### |
| 397 | + global $wgUseTeX, $wgLang; |
| 398 | + if ($wgUseTeX) { |
| 399 | + $defaultPreferences['math'] = |
| 400 | + array( |
| 401 | + 'type' => 'radio', |
| 402 | + 'options' => |
| 403 | + array_flip( array_map( 'wfMsg', $wgLang->getMathNames() ) ), |
| 404 | + 'label' => ' ', |
| 405 | + 'section' => 'math', |
| 406 | + ); |
| 407 | + } |
| 408 | + } |
| 409 | + |
394 | 410 | static function filesPreferences( $user, &$defaultPreferences ) { |
395 | 411 | ## Files ##################################### |
396 | 412 | $defaultPreferences['imagesize'] = |
— | — | @@ -494,20 +510,6 @@ |
495 | 511 | 'options' => $stubThresholdOptions, |
496 | 512 | 'label' => wfMsg('stub-threshold'), // Raw HTML message. Yay? |
497 | 513 | ); |
498 | | - |
499 | | - ## Math |
500 | | - global $wgUseTeX, $wgLang; |
501 | | - if ($wgUseTeX) { |
502 | | - $defaultPreferences['math'] = |
503 | | - array( |
504 | | - 'type' => 'radio', |
505 | | - 'options' => |
506 | | - array_flip( array_map( 'wfMsg', $wgLang->getMathNames() ) ), |
507 | | - 'label' => ' ', |
508 | | - 'section' => 'rendering', |
509 | | - ); |
510 | | - } |
511 | | - |
512 | 514 | $defaultPreferences['highlightbroken'] = |
513 | 515 | array( |
514 | 516 | 'type' => 'toggle', |