X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fgroupeditform.php;h=9061af2336844e75930501484d1f3e5065570b69;hb=73dbc5ca1b203758693f73d6423fea71ef6b6fb6;hp=e943dcd19a8b1425f14547e858e06b50d6f2363b;hpb=f79aec36feaa4760201a7e88d5b31513a3c458ba;p=quix0rs-gnu-social.git diff --git a/lib/groupeditform.php b/lib/groupeditform.php index e943dcd19a..9061af2336 100644 --- a/lib/groupeditform.php +++ b/lib/groupeditform.php @@ -147,7 +147,11 @@ class GroupEditForm extends Form $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.