// CSRF protection
$token = $this->trimmed('token');
if (!$token || $token != common_session_token()) {
+ // TRANS: Client error displayed when the session token does not match or is not given.
$this->showForm(_('There was a problem with your session token. '.
'Try again, please.'));
return;
if ($result === false) {
common_log_db_error($design, 'UPDATE', __FILE__);
// TRANS: Error message displayed if design settings could not be saved.
- $this->showForm(_('Couldn\'t update your design.'));
+ $this->showForm(_('Could not update your design.'));
return;
}
}
if ($result === false) {
common_log_db_error($design, 'DELETE', __FILE__);
// TRANS: Error message displayed if design settings could not be saved after clicking "Use defaults".
- $this->showForm(_('Couldn\'t update your design.'));
+ $this->showForm(_('Could not update your design.'));
return;
}
}