summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-20 14:06:40 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-20 14:06:40 -0400
commit2eab2c2d9d5727c0a57c1f597d10945565ad88ba (patch)
tree0f18fbd4cd78791ba8c64a4775bca60179635bf2 /lib
parentc3b0e7bf50f9acd998c9f5ae23867479f5e15696 (diff)
add nbsp to submit button label
darcs-hash:20080520180640-84dde-ab6db22c62371f5b747c39a78d5296e2d2fce2f8.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/util.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index 07332a07f..0b69b9d86 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -217,8 +217,11 @@ function common_password($id, $label) {
}
function common_submit($id, $label) {
+ global $xw;
common_element_start('p');
- common_element('label', NULL, ' ');
+ common_element_start('label', array('for' => $id));
+ $xw->writeRaw('&nbsp;');
+ common_element_end('label');
common_element('input', array('type' => 'submit',
'id' => $id,
'name' => $id,