bug24430 - patch from Chinchin, remove number of column for edit field in preference
authorBenny Situ <bsitu@users.mediawiki.org>
Fri, 23 Dec 2011 22:47:10 +0000 (22:47 +0000)
committerBenny Situ <bsitu@users.mediawiki.org>
Fri, 23 Dec 2011 22:47:10 +0000 (22:47 +0000)
includes/DefaultSettings.php
includes/EditPage.php
includes/OutputPage.php
includes/Preferences.php
includes/specials/SpecialUndelete.php
includes/specials/SpecialUpload.php

index 74c544e..aed36f4 100644 (file)
@@ -3178,7 +3178,6 @@ $wgReservedUsernames = array(
  */
 $wgDefaultUserOptions = array(
        'ccmeonemails'            => 0,
-       'cols'                    => 80,
        'date'                    => 'default',
        'diffonly'                => 0,
        'disablemail'             => 0,
index 2097329..088eae8 100644 (file)
@@ -2100,7 +2100,6 @@ HTML
                $attribs = $customAttribs + array(
                        'accesskey' => ',',
                        'id'   => $name,
-                       'cols' => $wgUser->getIntOption( 'cols' ),
                        'rows' => $wgUser->getIntOption( 'rows' ),
                        'style' => '' // avoid php notices when appending preferences (appending allows customAttribs['style'] to still work
                );
index bff481e..1273a7f 100644 (file)
@@ -2248,7 +2248,6 @@ class OutputPage extends ContextSource {
                        $params = array(
                                'id'   => 'wpTextbox1',
                                'name' => 'wpTextbox1',
-                               'cols' => $this->getUser()->getOption( 'cols' ),
                                'rows' => $this->getUser()->getOption( 'rows' ),
                                'readonly' => 'readonly',
                                'lang' => $pageLang->getHtmlCode(),
index 8fb00e2..fde135b 100644 (file)
@@ -29,7 +29,6 @@ class Preferences {
        static $defaultPreferences = null;
        static $saveFilters = array(
                        'timecorrection' => array( 'Preferences', 'filterTimezoneInput' ),
-                       'cols' => array( 'Preferences', 'filterIntval' ),
                        'rows' => array( 'Preferences', 'filterIntval' ),
                        'rclimit' => array( 'Preferences', 'filterIntval' ),
                        'wllimit' => array( 'Preferences', 'filterIntval' ),
@@ -689,13 +688,7 @@ class Preferences {
                global $wgUseExternalEditor, $wgAllowUserCssPrefs;
 
                ## Editing #####################################
-               $defaultPreferences['cols'] = array(
-                       'type' => 'int',
-                       'label-message' => 'columns',
-                       'section' => 'editing/textboxsize',
-                       'min' => 4,
-                       'max' => 1000,
-               );
+               
                $defaultPreferences['rows'] = array(
                        'type' => 'int',
                        'label-message' => 'rows',
index 9ed20f3..87ce43d 100644 (file)
@@ -847,7 +847,6 @@ class SpecialUndelete extends SpecialPage {
                $out->addHTML(
                        Xml::element( 'textarea', array(
                                        'readonly' => 'readonly',
-                                       'cols' => intval( $user->getOption( 'cols' ) ),
                                        'rows' => intval( $user->getOption( 'rows' ) ) ),
                                $rev->getText( Revision::FOR_THIS_USER, $user ) . "\n" ) .
                        Xml::openElement( 'div' ) .
index 3cb368c..5782e46 100644 (file)
@@ -956,7 +956,6 @@ class UploadForm extends HTMLForm {
                                        ? 'filereuploadsummary'
                                        : 'fileuploadsummary',
                                'default' => $this->mComment,
-                               'cols' => intval( $this->getUser()->getOption( 'cols' ) ),
                                'rows' => 8,
                        )
                );