summaryrefslogtreecommitdiff
path: root/actions/userdesignsettings.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-12-02 16:44:23 -0800
committerZach Copley <zach@status.net>2009-12-02 16:44:23 -0800
commit4f359d2a8baa89f3ced8b9d7ac2c9dd1b4cfb73b (patch)
tree40486532c0e9a09caf3d0c8b1de508947694b805 /actions/userdesignsettings.php
parent3e38d376a9ed53d6a6268106a7a85c1e9f131034 (diff)
Delete design when user chooses to restore default design, instead
of saving a design with site defaults.
Diffstat (limited to 'actions/userdesignsettings.php')
-rw-r--r--actions/userdesignsettings.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/actions/userdesignsettings.php b/actions/userdesignsettings.php
index 568c1d624..31a097970 100644
--- a/actions/userdesignsettings.php
+++ b/actions/userdesignsettings.php
@@ -96,14 +96,8 @@ class UserDesignSettingsAction extends DesignSettingsAction
function getWorkingDesign()
{
-
$user = common_current_user();
$design = $user->getDesign();
-
- if (empty($design)) {
- $design = $this->defaultDesign();
- }
-
return $design;
}
@@ -117,7 +111,13 @@ class UserDesignSettingsAction extends DesignSettingsAction
function showContent()
{
- $this->showDesignForm($this->getWorkingDesign());
+ $design = $this->getWorkingDesign();
+
+ if (empty($design)) {
+ $design = Design::siteDesign();
+ }
+
+ $this->showDesignForm($design);
}
/**