diff options
author | Evan Prodromou <evan@status.net> | 2010-01-10 14:18:19 -0800 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-01-10 14:18:19 -0800 |
commit | 866dfa6822df54765a9b92336722d86cfad6b123 (patch) | |
tree | 013aa4144fcebdd605e4bf2e8ebf491bf1449eb0 /lib/api.php | |
parent | 8cf1ef862d9021c0c1015b7a5cccb8e26409057a (diff) | |
parent | 7aa43f3c93a5434b59a66824b2816d5ba8cf1978 (diff) |
Merge branch 'master' into 0.9.x
Conflicts:
classes/Memcached_DataObject.php
Diffstat (limited to 'lib/api.php')
-rw-r--r-- | lib/api.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/api.php b/lib/api.php index 4ed49e452..06d7c079d 100644 --- a/lib/api.php +++ b/lib/api.php @@ -140,12 +140,14 @@ class ApiAction extends Action // Note: some profiles don't have an associated user + $defaultDesign = Design::siteDesign(); + if (!empty($user)) { $design = $user->getDesign(); } if (empty($design)) { - $design = Design::siteDesign(); + $design = $defaultDesign; } $color = Design::toWebColor(empty($design->backgroundcolor) ? $defaultDesign->backgroundcolor : $design->backgroundcolor); |