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:
c729b9a
)
Fix display of inverted check fields in HTML forms -- fixes bug 18581.
author
Andrew Garrett
<werdna@users.mediawiki.org>
Mon, 27 Apr 2009 00:55:23 +0000
(
00:55
+0000)
committer
Andrew Garrett
<werdna@users.mediawiki.org>
Mon, 27 Apr 2009 00:55:23 +0000
(
00:55
+0000)
includes/HTMLForm.php
patch
|
blob
|
history
diff --git
a/includes/HTMLForm.php
b/includes/HTMLForm.php
index
f77ff4c
..
a2be6cc
100644
(file)
--- a/
includes/HTMLForm.php
+++ b/
includes/HTMLForm.php
@@
-525,6
+525,9
@@
class HTMLIntField extends HTMLTextField {
class HTMLCheckField extends HTMLFormField {
function getInputHTML( $value ) {
+ if ( !empty( $this->mParams['invert'] ) )
+ $value = !$value;
+
return Xml::check( $this->mName, $value, array( 'id' => $this->mID ) ) . ' ' .
Xml::tags( 'label', array( 'for' => $this->mID ), $this->mLabel );
}