Index: trunk/phase3/includes/HTMLForm.php |
— | — | @@ -525,6 +525,9 @@ |
526 | 526 | |
527 | 527 | class HTMLCheckField extends HTMLFormField { |
528 | 528 | function getInputHTML( $value ) { |
| 529 | + if ( !empty( $this->mParams['invert'] ) ) |
| 530 | + $value = !$value; |
| 531 | + |
529 | 532 | return Xml::check( $this->mName, $value, array( 'id' => $this->mID ) ) . ' ' . |
530 | 533 | Xml::tags( 'label', array( 'for' => $this->mID ), $this->mLabel ); |
531 | 534 | } |