X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Feditpeopletag.php;h=72dcc0df723cca9ff664797551ef0be0045ea487;hb=f110fc5c9a61ac666d88714b170b12f99d911b11;hp=00d1fc3a77b6f1db3289712d801d02e9ff07cadb;hpb=36d619480a8f5fa06db5b54fe7686de83d8225be;p=quix0rs-gnu-social.git diff --git a/actions/editpeopletag.php b/actions/editpeopletag.php index 00d1fc3a77..72dcc0df72 100644 --- a/actions/editpeopletag.php +++ b/actions/editpeopletag.php @@ -71,7 +71,11 @@ class EditpeopletagAction extends Action } $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); @@ -89,9 +93,9 @@ class EditpeopletagAction extends Action $user = null; if ($id) { - $this->peopletag = Profile_list::staticGet('id', $id); + $this->peopletag = Profile_list::getKV('id', $id); if (!empty($this->peopletag)) { - $user = User::staticGet('id', $this->peopletag->tagger); + $user = User::getKV('id', $this->peopletag->tagger); } } else { if (!$tagger) { @@ -100,7 +104,7 @@ class EditpeopletagAction extends Action return false; } - $user = User::staticGet('nickname', $tagger); + $user = User::getKV('nickname', $tagger); $this->peopletag = Profile_list::pkeyGet(array('tagger' => $user->id, 'tag' => $tag)); } @@ -293,7 +297,7 @@ class EditpeopletagAction extends Action 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.')); }