summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@controlyourself.ca>2009-06-27 03:21:18 +0000
committerSarven Capadisli <csarven@controlyourself.ca>2009-06-27 03:21:18 +0000
commitf65015b24a8448ecbb12b3897992cdaf6b563212 (patch)
tree99a40ba57b87e627b576e8d99824cc407edb501b /lib
parenta68722c9c75cd9dc8ed84e186f3b4ecc5556b1a3 (diff)
Added input submit to let the user to go back to site's default design
settings
Diffstat (limited to 'lib')
-rw-r--r--lib/designsettings.php17
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/designsettings.php b/lib/designsettings.php
index 9650679ac..5def5053f 100644
--- a/lib/designsettings.php
+++ b/lib/designsettings.php
@@ -212,18 +212,19 @@ class DesignSettingsAction extends AccountSettingsAction
'maxlength' => '7',
'size' => '7',
'value' => '#' . $lcolor->hexValue()));
+ $this->elementEnd('li');
- $this->elementEnd('li');
+ } catch (WebColorException $e) {
+ common_log(LOG_ERR, 'Bad color values in design ID: ' .$design->id);
+ }
- } catch (WebColorException $e) {
- common_log(LOG_ERR, 'Bad color values in design ID: ' .
- $design->id);
- }
+ $this->elementEnd('ul');
+ $this->elementEnd('fieldset');
- $this->elementEnd('ul');
- $this->elementEnd('fieldset');
+ $this->submit('defaults', _('Use defaults'), 'submit form_action-default',
+ 'defaults', _('Restore default designs'));
- $this->element('input', array('id' => 'settings_design_reset',
+ $this->element('input', array('id' => 'settings_design_reset',
'type' => 'reset',
'value' => 'Reset',
'class' => 'submit form_action-primary',