Use HTMLForm for Special:Export
[lhc/web/wiklou.git] / includes / htmlform / HTMLCheckField.php
index ede30dd..90293f4 100644 (file)
@@ -74,6 +74,11 @@ class HTMLCheckField extends HTMLFormField {
        function getLabel() {
                if ( $this->mParent instanceof OOUIHTMLForm ) {
                        return $this->mLabel;
+               } elseif (
+                       $this->mParent instanceof HTMLForm &&
+                       $this->mParent->getDisplayFormat() === 'div'
+               ) {
+                       return '';
                } else {
                        return ' ';
                }