Remove the 'editwidth' preference and related code.
authorSiebrand Mazeland <siebrand@users.mediawiki.org>
Thu, 15 Apr 2010 18:11:24 +0000 (18:11 +0000)
committerSiebrand Mazeland <siebrand@users.mediawiki.org>
Thu, 15 Apr 2010 18:11:24 +0000 (18:11 +0000)
I was not able to find any scenario that changed editor behavior anymore in monobook, modern, vector, classic or chick skin.

includes/DefaultSettings.php
includes/EditPage.php
includes/Preferences.php
includes/User.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc

index 11adf5b..f93d330 100644 (file)
@@ -2724,7 +2724,6 @@ $wgDefaultUserOptions = array(
        'editondblclick'          => 0,
        'editsection'             => 1,
        'editsectiononrightclick' => 0,
-       'editwidth'               => 0,
        'enotifminoredits'        => 0,
        'enotifrevealaddr'        => 0,
        'enotifusertalkpages'     => 1,
index c7eaa21..9f3df79 100644 (file)
@@ -1655,12 +1655,9 @@ INPUTS
                        'id'   => $name,
                        'cols' => $wgUser->getIntOption( 'cols' ), 
                        'rows' => $wgUser->getIntOption( 'rows' ),
-                       'style' => '' // avoid php notices when appending for editwidth preference (appending allows customAttribs['style'] to still work
+                       'style' => '' // avoid php notices when appending preferences (appending allows customAttribs['style'] to still work
                );
 
-               if ( $wgUser->getOption( 'editwidth' ) )
-                       $attribs['style'] .= 'width: 100%';
-
                $wgOut->addHTML( Html::textarea( $name, $wikitext, $attribs ) );
        }
 
index fce0e26..21bd9ad 100644 (file)
@@ -736,12 +736,6 @@ class Preferences {
                                        'section' => 'editing/advancedediting',
                                        'label-message' => 'tog-editondblclick',
                                );
-               $defaultPreferences['editwidth'] =
-                               array(
-                                       'type' => 'toggle',
-                                       'section' => 'editing/advancedediting',
-                                       'label-message' => 'tog-editwidth',
-                               );
                $defaultPreferences['showtoolbar'] =
                                array(
                                        'type' => 'toggle',
index 0e7ea34..227e36a 100644 (file)
@@ -62,7 +62,6 @@ class User {
                'editsectiononrightclick',
                'showtoc',
                'rememberpassword',
-               'editwidth',
                'watchcreations',
                'watchdefault',
                'watchmoves',
index 9ba52fb..7c2a1db 100644 (file)
@@ -628,7 +628,6 @@ XHTML id names.
 'tog-editsectiononrightclick' => 'Enable section editing by right clicking on section titles (requires JavaScript)',
 'tog-showtoc'                 => 'Show table of contents (for pages with more than 3 headings)',
 'tog-rememberpassword'        => 'Remember my login on this computer',
-'tog-editwidth'               => 'Widen the edit box to fill the entire screen',
 'tog-watchcreations'          => 'Add pages I create to my watchlist',
 'tog-watchdefault'            => 'Add pages I edit to my watchlist',
 'tog-watchmoves'              => 'Add pages I move to my watchlist',
index cdff4d5..de097b2 100644 (file)
@@ -27,7 +27,6 @@ $wgMessageStructure = array(
                'tog-editsectiononrightclick',
                'tog-showtoc',
                'tog-rememberpassword',
-               'tog-editwidth',
                'tog-watchcreations',
                'tog-watchdefault',
                'tog-watchmoves',