From de336c6dd7432425dc832b4e73b2a658d3113901 Mon Sep 17 00:00:00 2001 From: Matt Walker Date: Sat, 13 Apr 2013 16:06:43 -0700 Subject: [PATCH] HTMLTextAreaField: Allow sizes to be overridden by child classes Change-Id: I51e8bcba95c7b555f072329b01c6577115f246b3 --- includes/HTMLForm.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index 2d0cefc5c9..1d9a3d0a82 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -1623,16 +1623,19 @@ class HTMLTextField extends HTMLFormField { } } class HTMLTextAreaField extends HTMLFormField { + const DEFAULT_COLS = 80; + const DEFAULT_ROWS = 25; + function getCols() { return isset( $this->mParams['cols'] ) ? $this->mParams['cols'] - : 80; + : static::DEFAULT_COLS; } function getRows() { return isset( $this->mParams['rows'] ) ? $this->mParams['rows'] - : 25; + : static::DEFAULT_ROWS; } function getInputHTML( $value ) { -- 2.20.1