diff options
author | Brion Vibber <brion@pobox.com> | 2010-11-02 11:15:57 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-11-02 11:15:57 -0700 |
commit | 23f69c80b5c6a8730fc6ff3b9f3cec71840de03b (patch) | |
tree | e63517a180c7c1b84ccb31a2285de2250a05c646 /actions/subedit.php | |
parent | 62408fef09990a127a58aa8f8a24777bc34d160d (diff) | |
parent | 760a1c27bc37a20b70788e5e132c4cf9da1bb579 (diff) |
Merge branch '0.9.x' into twitstream
Diffstat (limited to 'actions/subedit.php')
-rw-r--r-- | actions/subedit.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actions/subedit.php b/actions/subedit.php index cf6589e50..3b77aff58 100644 --- a/actions/subedit.php +++ b/actions/subedit.php @@ -19,6 +19,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } +// @todo FIXME: Documentation needed. class SubeditAction extends Action { var $profile = null; @@ -28,6 +29,7 @@ class SubeditAction extends Action parent::prepare($args); if (!common_logged_in()) { + // TRANS: Client error displayed trying a change a subscription while not logged in. $this->clientError(_('Not logged in.')); return false; } @@ -43,6 +45,7 @@ class SubeditAction extends Action $id = $this->trimmed('profile'); if (!$id) { + // TRANS: Client error displayed trying a change a subscription without providing a profile. $this->clientError(_('No profile specified.')); return false; } @@ -50,6 +53,7 @@ class SubeditAction extends Action $this->profile = Profile::staticGet('id', $id); if (!$this->profile) { + // TRANS: Client error displayed trying a change a subscription for a non-existant profile ID. $this->clientError(_('No profile with that ID.')); return false; } @@ -67,6 +71,7 @@ class SubeditAction extends Action 'subscribed' => $this->profile->id)); if (!$sub) { + // TRANS: Client error displayed trying a change a subscription for a non-subscribed profile. $this->clientError(_('You are not subscribed to that profile.')); return false; } @@ -80,6 +85,7 @@ class SubeditAction extends Action if (!$result) { common_log_db_error($sub, 'UPDATE', __FILE__); + // TRANS: Server error displayed when updating a subscription fails with a database error. $this->serverError(_('Could not save subscription.')); return false; } |