Index: trunk/phase3/includes/Preferences.php |
— | — | @@ -574,6 +574,8 @@ |
575 | 575 | } |
576 | 576 | |
577 | 577 | static function editingPreferences( $user, &$defaultPreferences ) { |
| 578 | + global $wgUseExternalEditor; |
| 579 | + |
578 | 580 | ## Editing ##################################### |
579 | 581 | $defaultPreferences['cols'] = |
580 | 582 | array( |
— | — | @@ -640,19 +642,14 @@ |
641 | 643 | 'label-message' => 'tog-minordefault', |
642 | 644 | ); |
643 | 645 | |
644 | | - global $wgUseExternalEditor; |
645 | | - if ($wgUseExternalEditor) { |
| 646 | + if ( $wgUseExternalEditor ) { |
646 | 647 | $defaultPreferences['externaleditor'] = |
647 | 648 | array( |
648 | 649 | 'type' => 'toggle', |
649 | 650 | 'section' => 'editing/advancedediting', |
650 | 651 | 'label-message' => 'tog-externaleditor', |
651 | 652 | ); |
652 | | - } |
653 | | - |
654 | | - global $wgExternalDiffEngine; |
655 | | - if ($wgExternalDiffEngine) { |
656 | | - $defaultPreferences['externaldiff'] = |
| 653 | + $defaultPreferences['externaldiff'] = |
657 | 654 | array( |
658 | 655 | 'type' => 'toggle', |
659 | 656 | 'section' => 'editing/advancedediting', |