diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/Form/InputElement.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/Form/InputElement.php b/inc/Form/InputElement.php index 939d911c1..5908f7d11 100644 --- a/inc/Form/InputElement.php +++ b/inc/Form/InputElement.php @@ -150,7 +150,7 @@ class InputElement extends Element { public function toHTML() { if($this->label) { return '<label ' . buildAttributes($this->label->attrs()) . '>' . DOKU_LF . - '<span>' . hsc($this->label->label) . '</span>' . DOKU_LF . + '<span>' . hsc($this->label->val()) . '</span>' . DOKU_LF . $this->mainElementHTML() . DOKU_LF . '</label>'; } else { |