Delete design when user chooses to restore default design, instead

of saving a design with site defaults.
This commit is contained in:
Zach Copley
2009-12-02 16:44:23 -08:00
parent 3e38d376a9
commit 4f359d2a8b
4 changed files with 23 additions and 73 deletions

View File

@@ -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);