dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
9f38afa
)
Merge "HTMLTextAreaField: Allow sizes to be overridden by child classes"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Wed, 1 May 2013 00:49:28 +0000
(
00:49
+0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Wed, 1 May 2013 00:49:28 +0000
(
00:49
+0000)
includes/HTMLForm.php
patch
|
blob
|
history
diff --git
a/includes/HTMLForm.php
b/includes/HTMLForm.php
index
c08206d
..
25f5a5b
100644
(file)
--- a/
includes/HTMLForm.php
+++ b/
includes/HTMLForm.php
@@
-1622,16
+1622,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 ) {