summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-15 17:42:49 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-15 17:42:49 -0400
commitba09eb77006825bc046c7fd348be31b8f8cc2a48 (patch)
tree1d567c50c1182b6cbc12dc5aef3f6879826b7cef
parentd361bad9e149d4ee95ebdd0c43a87f80613d5200 (diff)
fix checkbox for license
darcs-hash:20080715214249-84dde-ed5f9b38a93e9fcfd5c6772fb1c784696d3a435a.gz
-rw-r--r--actions/register.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/actions/register.php b/actions/register.php
index 76e6ede55..1829fa03d 100644
--- a/actions/register.php
+++ b/actions/register.php
@@ -225,10 +225,14 @@ class RegisterAction extends Action {
$this->boolean('rememberme'),
_('Automatically login in the future; not for shared computers!'));
common_element_start('p');
- common_element('input', array('type' => 'checkbox',
- 'id' => 'license',
- 'name' => 'license',
- 'value' => ($this->boolean('license')) ? 'true' : 'false'));
+ $attrs = array('type' => 'checkbox',
+ 'id' => 'license',
+ 'name' => 'license',
+ 'value' => 'true');
+ if ($this->boolean('license')) {
+ $attrs['checked'] = 'checked';
+ }
+ common_element('input', $attrs);
common_text(_('My text and files are available under '));
common_element('a', array(href => $config['license']['url']),
$config['license']['title']);