- $this->input('nickname', _m('User nickname'), $this->nickname,
- _m('Nickname of the user you want to follow.'));
- $this->hidden('group', $this->group); // pass-through for magic links
+
+ if ($this->group) {
+ // TRANS: Field label.
+ $this->input('group', _m('Group nickname'), $this->group,
+ // TRANS: Field title.
+ _m('Nickname of the group you want to join.'));
+ } else {
+ // TRANS: Field label.
+ $this->input('nickname', _m('User nickname'), $this->nickname,
+ // TRANS: Field title.
+ _m('Nickname of the user you want to follow.'));
+ $this->hidden('tagger', $this->tagger);
+ $this->hidden('peopletag', $this->peopletag);
+ }
+