Hide signup/login/logout links when they would not work
authorGergő Tisza <gtisza@wikimedia.org>
Wed, 7 Sep 2016 05:50:35 +0000 (05:50 +0000)
committerGergő Tisza <gtisza@wikimedia.org>
Thu, 8 Sep 2016 18:09:22 +0000 (18:09 +0000)
commitc6569e7dc70ac07db5d86e429d7f3d0d42792915
tree183c44aef37d093171096d1cd21e7a4c18498806
parentb2585a95b27fc196bcded4c146d1251d9d7740b9
Hide signup/login/logout links when they would not work

Immutable session providers do not support login and logout;
these pages would just show an error when such a session provider
is handling the authentication of the request. Depending on what
authentication providers are configured, the wiki might not
support account creation. Showing the links is unhelpful if
they would just show an obscure error message.

(OTOH don't try to hide the link when the reason it is not
usable depends on the user; specifically, don't check
AuthManager::checkAccountCreatePermissions. An error message
is more informative in that case than a missing link.)

Also improve how the affected special pages behave if the user
manages to get there anyway.

Change-Id: Ic0ad237259797a8d471bdabc57a4bd0ffe8fa33b
includes/skins/SkinTemplate.php
includes/specialpage/LoginSignupSpecialPage.php
languages/i18n/en.json
languages/i18n/qqq.json