X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fgroupeditform.php;h=9061af2336844e75930501484d1f3e5065570b69;hb=586fb5a5175d7a10f5f78dd026434e48202e5451;hp=b795c1387daa2b5bc64f402fefc12a5f53cc9155;hpb=31b29fde50e9664e1b70064c043879ce87553883;p=quix0rs-gnu-social.git diff --git a/lib/groupeditform.php b/lib/groupeditform.php index b795c1387d..9061af2336 100644 --- a/lib/groupeditform.php +++ b/lib/groupeditform.php @@ -144,10 +144,14 @@ class GroupEditForm extends Form $this->out->elementStart('li'); $this->out->hidden('groupid', $id); // TRANS: Field label on group edit form. - $this->out->input('nickname', _('Nickname'), - ($this->out->arg('nickname')) ? $this->out->arg('nickname') : $nickname, + $this->out->input('newnickname', _('Nickname'), + ($this->out->arg('newnickname')) ? $this->out->arg('newnickname') : $nickname, // TRANS: Field title on group edit form. - _('1-64 lowercase letters or numbers, no punctuation or spaces.')); + _('1-64 lowercase letters or numbers, no punctuation or spaces.'), + null, false, + $this->group instanceof User_group && !common_config('profile', 'changenick') + ? array('disabled'=>'disabled') // can't change nickname + : array()); // either we can change nickname, or we're creating a new group. $this->out->elementEnd('li'); $this->out->elementStart('li'); // TRANS: Field label on group edit form.