dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1220218
)
Better fix for bug 36049, now using isset() rather than !empty()
author
awjrichards
<arichards@wikimedia.org>
Fri, 20 Apr 2012 23:18:50 +0000
(16:18 -0700)
committer
awjrichards
<arichards@wikimedia.org>
Fri, 20 Apr 2012 23:18:50 +0000
(16:18 -0700)
for textarea placeholder attribute in case the attribute value
is '0'.
Change-Id: I139abff427d7342fc3283ed3428d0a538331d2b5
includes/HTMLForm.php
patch
|
blob
|
history
diff --git
a/includes/HTMLForm.php
b/includes/HTMLForm.php
index
ec1507c
..
505a26f
100644
(file)
--- a/
includes/HTMLForm.php
+++ b/
includes/HTMLForm.php
@@
-1306,7
+1306,7
@@
class HTMLTextAreaField extends HTMLFormField {
$attribs['readonly'] = 'readonly';
}
- if (
!empty
( $this->mParams['placeholder'] ) ) {
+ if (
isset
( $this->mParams['placeholder'] ) ) {
$attribs['placeholder'] = $this->mParams['placeholder'];
}