summaryrefslogtreecommitdiff
path: root/actions/apiaccountupdateprofileimage.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-11-09 23:56:02 -0800
committerZach Copley <zach@status.net>2009-11-09 23:56:02 -0800
commitc8bd6d9f7afde597f3b404acb05622a73f3738f7 (patch)
tree218275a6e49175debb0cb28d89c02bd1942a8adb /actions/apiaccountupdateprofileimage.php
parent312c745884654a461ed6da22eebe78f07f500426 (diff)
Make /api/account/update_profile_background_image.format work even
when there isn't an existing Design for the user. Plus a few other fixups.
Diffstat (limited to 'actions/apiaccountupdateprofileimage.php')
-rw-r--r--actions/apiaccountupdateprofileimage.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/apiaccountupdateprofileimage.php b/actions/apiaccountupdateprofileimage.php
index 72fb361bf..153ef7818 100644
--- a/actions/apiaccountupdateprofileimage.php
+++ b/actions/apiaccountupdateprofileimage.php
@@ -102,7 +102,7 @@ class ApiAccountUpdateProfileImageAction extends ApiAuthAction
}
if (empty($this->user)) {
- $this->clientError(_('No such user!'), 404, $this->format);
+ $this->clientError(_('No such user.'), 404, $this->format);
return;
}
@@ -135,7 +135,7 @@ class ApiAccountUpdateProfileImageAction extends ApiAuthAction
common_broadcast_profile($profile);
- $twitter_user = $this->twitterUserArray($this->user->getProfile(), true);
+ $twitter_user = $this->twitterUserArray($profile, true);
if ($this->format == 'xml') {
$this->initDocument('xml');