Amritsreekumar has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/333349 )

Change subject: Remove uses of 'cols' and 'rows' preferences
......................................................................

Remove uses of 'cols' and 'rows' preferences

The use of 'cols' and 'rows' preferences have been removed from the extension 
PageForms by replacing them with the required values.

Bug: T155153
Change-Id: I967a0c74782a64b71bf8a26c3e0380ff5c269fbd
---
M specials/PF_UploadForm.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PageForms 
refs/changes/49/333349/1

diff --git a/specials/PF_UploadForm.php b/specials/PF_UploadForm.php
index 9cc7f64..1b041eb 100644
--- a/specials/PF_UploadForm.php
+++ b/specials/PF_UploadForm.php
@@ -184,7 +184,7 @@
         * @return array Descriptor array
         */
        protected function getDescriptionSection() {
-               $cols = intval( $this->getUser()->getOption( 'cols' ) );
+               $cols = 80;
                if ( $this->getUser()->getOption( 'editwidth' ) ) {
                        $this->getOutput()->addInlineStyle( 
'#mw-htmlform-description { width: 100%; }' );
                }
@@ -204,7 +204,7 @@
                                'label-message' => $this->mForReUpload
                                        ? 'filereuploadsummary'
                                        : 'fileuploadsummary',
-                               'cols' => $cols,
+                               'cols' => 80,
                                'rows' => 4,
                        ),
 /*

-- 
To view, visit https://gerrit.wikimedia.org/r/333349
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I967a0c74782a64b71bf8a26c3e0380ff5c269fbd
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PageForms
Gerrit-Branch: master
Gerrit-Owner: Amritsreekumar <amrit.sreeku...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to