* @link http://status.net/
*/
-class EditpeopletagAction extends OwnerDesignAction
+class EditpeopletagAction extends Action
{
var $msg, $confirm, $confirm_args=array();
}
$id = $this->arg('id');
- $tagger_arg = $this->arg('tagger');
+ if (common_config('singleuser', 'enabled')) {
+ $tagger_arg = User::singleUserNickname();
+ } else {
+ $tagger_arg = $this->arg('tagger');
+ }
$tag_arg = $this->arg('tag');
$tagger = common_canonical_nickname($tagger_arg);
return;
} else if (Profile_list::descriptionTooLong($description)) {
$this->showForm(sprintf(
- // TRANS: Client error shown when providing too long a description when editing a people tag.
+ // TRANS: Client error shown when providing too long a description when editing a list.
// TRANS: %d is the maximum number of allowed characters.
_m('Description is too long (maximum %d character).',
'Description is too long (maximum %d characters).',
if (!$result) {
common_log_db_error($this->group, 'UPDATE', __FILE__);
- // TRANS: TRANS: Server error displayed when updating a list fails.
+ // TRANS: Server error displayed when updating a list fails.
$this->serverError(_('Could not update list.'));
}
'tag' => $tag)),
303);
} else {
- // TRANS: Edit people tag form success message.
+ // TRANS: Edit list form success message.
$this->showForm(_('Options saved.'));
}
}