From: Matt Walker Date: Sat, 13 Apr 2013 23:06:43 +0000 (-0700) Subject: HTMLTextAreaField: Allow sizes to be overridden by child classes X-Git-Tag: 1.31.0-rc.0~19805^2 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=de336c6dd7432425dc832b4e73b2a658d3113901;p=lhc%2Fweb%2Fwiklou.git HTMLTextAreaField: Allow sizes to be overridden by child classes Change-Id: I51e8bcba95c7b555f072329b01c6577115f246b3 --- 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 ) {