summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/util.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/util.php b/lib/util.php
index c3d11b074..03720a778 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -401,9 +401,8 @@ function common_checkbox($id, $label, $checked=false, $instructions=NULL, $value
$attrs['disabled'] = 'true';
}
common_element('input', $attrs);
- # XXX: use a <label>
common_text(' ');
- common_element('span', 'checkbox_label', $label);
+ common_element('label', array('class' => 'checkbox_label', 'for' => $id), $label);
common_text(' ');
if ($instructions) {
common_element('span', 'input_instructions', $instructions);