return;
}
+ if (!in_array($this->format, array('xml', 'json'))) {
+ $this->clientError(
+ _('API method not found.'),
+ 404,
+ $this->format
+ );
+ return;
+ }
+
$design = $this->user->getDesign();
if (!empty($design)) {
if ($result === false) {
common_log_db_error($design, 'UPDATE', __FILE__);
- $this->clientError(_('Couldn\'t update your design.'));
+ $this->clientError(_('Could not update your design.'));
return;
}
if (empty($id)) {
common_log_db_error($id, 'INSERT', __FILE__);
- $this->clientError(_('Unable to save your design settings!'));
+ $this->clientError(_('Unable to save your design settings.'));
return;
}
if (empty($result)) {
common_log_db_error($original, 'UPDATE', __FILE__);
- $this->clientError(_('Unable to save your design settings!'));
+ $this->clientError(_('Unable to save your design settings.'));
$this->user->query('ROLLBACK');
return;
}
return;
}
- $twitter_user = $this->twitterUserArray($this->user->getProfile(), true);
+ $twitter_user = $this->twitterUserArray($profile, true);
if ($this->format == 'xml') {
$this->initDocument('xml');