exit(1);
}
-require_once INSTALLDIR . '/lib/apiauth.php';
-
/**
* Updates the authenticating user's profile image. Note that this API method
* expects raw multipart data, not a URL to an image.
$profile = $this->user->getProfile();
if (empty($profile)) {
- // TRANS: Client error displayed if a user profile could not be found updating a profile image.
+ // TRANS: Error message displayed when referring to a user without a profile.
$this->clientError(_('User has no profile.'));
return;
}