diff options
author | Zach Copley <zach@status.net> | 2009-12-02 16:44:23 -0800 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2009-12-02 16:44:23 -0800 |
commit | 4f359d2a8baa89f3ced8b9d7ac2c9dd1b4cfb73b (patch) | |
tree | 40486532c0e9a09caf3d0c8b1de508947694b805 /lib/api.php | |
parent | 3e38d376a9ed53d6a6268106a7a85c1e9f131034 (diff) |
Delete design when user chooses to restore default design, instead
of saving a design with site defaults.
Diffstat (limited to 'lib/api.php')
-rw-r--r-- | lib/api.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/api.php b/lib/api.php index e2ea87b43..5a3bb5ee4 100644 --- a/lib/api.php +++ b/lib/api.php @@ -134,7 +134,6 @@ class ApiAction extends Action $twitter_user['protected'] = false; # not supported by StatusNet yet $twitter_user['followers_count'] = $profile->subscriberCount(); - $defaultDesign = Design::siteDesign(); $design = null; $user = $profile->getUser(); @@ -145,7 +144,7 @@ class ApiAction extends Action } if (empty($design)) { - $design = $defaultDesign; + $design = Design::siteDesign(); } $color = Design::toWebColor(empty($design->backgroundcolor) ? $defaultDesign->backgroundcolor : $design->backgroundcolor); |