r65390 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65389‎ | r65390 | r65391 >
Date:14:19, 21 April 2010
Author:werdna
Status:ok
Tags:
Comment:
Eliminate $wgLivePreview toggle for the uselivepreview preference
Modified paths:
  • /trunk/phase3/includes/Preferences.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Preferences.php
@@ -640,7 +640,7 @@
641641 }
642642
643643 static function editingPreferences( $user, &$defaultPreferences ) {
644 - global $wgUseExternalEditor, $wgLivePreview, $wgAllowUserCssPrefs;
 644+ global $wgUseExternalEditor, $wgAllowUserCssPrefs;
645645
646646 ## Editing #####################################
647647 $defaultPreferences['cols'] = array(
@@ -729,13 +729,12 @@
730730 'label-message' => 'tog-forceeditsummary',
731731 );
732732
733 - if ( $wgLivePreview ) {
734 - $defaultPreferences['uselivepreview'] = array(
735 - 'type' => 'toggle',
736 - 'section' => 'editing/advancedediting',
737 - 'label-message' => 'tog-uselivepreview',
738 - );
739 - }
 733+
 734+ $defaultPreferences['uselivepreview'] = array(
 735+ 'type' => 'toggle',
 736+ 'section' => 'editing/advancedediting',
 737+ 'label-message' => 'tog-uselivepreview',
 738+ );
740739 }
741740
742741 static function rcPreferences( $user, &$defaultPreferences ) {

Status & tagging log