http://www.mediawiki.org/wiki/Special:Code/MediaWiki/65390

Revision: 65390
Author:   werdna
Date:     2010-04-21 14:19:04 +0000 (Wed, 21 Apr 2010)

Log Message:
-----------
Eliminate $wgLivePreview toggle for the uselivepreview preference

Modified Paths:
--------------
    trunk/phase3/includes/Preferences.php

Modified: trunk/phase3/includes/Preferences.php
===================================================================
--- trunk/phase3/includes/Preferences.php       2010-04-21 13:54:59 UTC (rev 
65389)
+++ trunk/phase3/includes/Preferences.php       2010-04-21 14:19:04 UTC (rev 
65390)
@@ -640,7 +640,7 @@
        }
 
        static function editingPreferences( $user, &$defaultPreferences ) {
-               global $wgUseExternalEditor, $wgLivePreview, 
$wgAllowUserCssPrefs;
+               global $wgUseExternalEditor, $wgAllowUserCssPrefs;
 
                ## Editing #####################################
                $defaultPreferences['cols'] = array(
@@ -729,13 +729,12 @@
                        'label-message' => 'tog-forceeditsummary',
                );
 
-               if ( $wgLivePreview ) {
-                       $defaultPreferences['uselivepreview'] = array(
-                               'type' => 'toggle',
-                               'section' => 'editing/advancedediting',
-                               'label-message' => 'tog-uselivepreview',
-                       );
-               }
+                               
+               $defaultPreferences['uselivepreview'] = array(
+                       'type' => 'toggle',
+                       'section' => 'editing/advancedediting',
+                       'label-message' => 'tog-uselivepreview',
+               );
        }
 
        static function rcPreferences( $user, &$defaultPreferences ) {



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to