summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlezvous.ca>2008-06-26 14:17:26 -0400
committerEvan Prodromou <evan@controlezvous.ca>2008-06-26 14:17:26 -0400
commitc20bcca0c59f77fbc899f779cbeffd7925f86720 (patch)
treea6d3325d97df709e19b53f70fe74c46f3e8a2e20 /lib/util.php
parentdb2d79cd31f6cdf4d7f45b2ef610f3fb40df564d (diff)
get rid of label on checkbox, just include it as contents
darcs-hash:20080626181726-34904-c21801c5f2a74b6e66130308cdc106429cf7f43c.gz
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/util.php b/lib/util.php
index ccaf53123..2c2ee4c0c 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -322,7 +322,6 @@ function common_input($id, $label, $value=NULL,$instructions=NULL) {
function common_checkbox($id, $label, $instructions=NULL, $value='true')
{
common_element_start('p');
- common_element('label', array('for' => $id), $label);
$attrs = array('name' => $id,
'type' => 'checkbox',
'id' => $id,
@@ -330,7 +329,7 @@ function common_checkbox($id, $label, $instructions=NULL, $value='true')
if ($value) {
$attrs['value'] = htmlspecialchars($value);
}
- common_element('input', $attrs);
+ common_element('input', $attrs, $label);
if ($instructions) {
common_element('span', 'input_instructions', $instructions);
}