]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Don't use a placeholder value on the nickname field
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 8 Mar 2015 22:29:38 +0000 (23:29 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 8 Mar 2015 22:29:38 +0000 (23:29 +0100)
(because the placeholder would be 'Nickname', and it might confuse
someone who thinks they can use capital letters...)

actions/profilesettings.php

index 8805527a9c71d3aefd3cca8fb27360ba5e951a9b..7d3143d4b186507483af83288750c910a220d45e 100644 (file)
@@ -104,7 +104,9 @@ class ProfilesettingsAction extends SettingsAction
                          // TRANS: Tooltip for field label in form for profile settings.
                          _('1-64 lowercase letters or numbers, no punctuation or spaces.'),
                          null, false,   // "name" (will be set to id), then "required"
-                         !common_config('profile', 'changenick') ? array('disabled'=>'disabled') : array());
+                         !common_config('profile', 'changenick')
+                                        ? array('disabled' => 'disabled', 'placeholder' => null)
+                                        : array('placeholder' => null));
             $this->elementEnd('li');
             $this->elementStart('li');
             // TRANS: Field label in form for profile settings.