Followup r65070, remove last instance of editwidth pref
authorChad Horohoe <demon@users.mediawiki.org>
Tue, 2 Nov 2010 21:19:05 +0000 (21:19 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Tue, 2 Nov 2010 21:19:05 +0000 (21:19 +0000)
includes/specials/SpecialUpload.php

index cfc93a3..066c062 100644 (file)
@@ -911,11 +911,6 @@ class UploadForm extends HTMLForm {
        protected function getDescriptionSection() {
                global $wgUser, $wgOut;
 
-               $cols = intval( $wgUser->getOption( 'cols' ) );
-               if( $wgUser->getOption( 'editwidth' ) ) {
-                       $wgOut->addInlineStyle( '#mw-htmlform-description { width: 100%; }' );
-               }
-
                $descriptor = array(
                        'DestFile' => array(
                                'type' => 'text',
@@ -934,7 +929,7 @@ class UploadForm extends HTMLForm {
                                'label-message' => $this->mForReUpload
                                        ? 'filereuploadsummary'
                                        : 'fileuploadsummary',
-                               'cols' => $cols,
+                               'cols' => intval( $wgUser->getOption( 'cols' ) ),
                                'rows' => 8,
                        )
                );