r65392 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65391‎ | r65392 | r65393 >
Date:14:22, 21 April 2010
Author:werdna
Status:deferred
Tags:
Comment:
Reimplement r65388 on 1.16wmf4
Modified paths:
  • /branches/wmf/1.16wmf4/includes/Preferences.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.16wmf4/includes/Preferences.php
@@ -635,7 +635,7 @@
636636 }
637637
638638 static function editingPreferences( $user, &$defaultPreferences ) {
639 - global $wgUseExternalEditor, $wgLivePreview;
 639+ global $wgUseExternalEditor;
640640
641641 ## Editing #####################################
642642 $defaultPreferences['cols'] =
@@ -737,14 +737,13 @@
738738 'section' => 'editing/advancedediting',
739739 'label-message' => 'tog-forceeditsummary',
740740 );
741 - if ( $wgLivePreview ) {
742 - $defaultPreferences['uselivepreview'] =
743 - array(
744 - 'type' => 'toggle',
745 - 'section' => 'editing/advancedediting',
746 - 'label-message' => 'tog-uselivepreview',
747 - );
748 - }
 741+
 742+ $defaultPreferences['uselivepreview'] =
 743+ array(
 744+ 'type' => 'toggle',
 745+ 'section' => 'editing/advancedediting',
 746+ 'label-message' => 'tog-uselivepreview',
 747+ );
749748 }
750749
751750 static function rcPreferences( $user, &$defaultPreferences ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r65388Fix regression in r65384 with document.write() compatibilitywerdna13:53, 21 April 2010

Status & tagging log