diff options
author | Zach Copley <zach@status.net> | 2009-12-03 00:54:46 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2009-12-03 00:54:46 +0000 |
commit | bf63734359976a0bc32a45687fcda190b693b9d1 (patch) | |
tree | f195cf1e92641b447e59c9bd1da72377119952ae /lib/api.php | |
parent | f55b0e9b3da3e88c30dc7823f9fd46e50917b89c (diff) | |
parent | 4f359d2a8baa89f3ced8b9d7ac2c9dd1b4cfb73b (diff) |
Merge branch 'fix-default-design' into 0.9.x
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); |