Make UserNotLoggedIn redirect to login page
authorTyler Romeo <tylerromeo@gmail.com>
Tue, 15 Jul 2014 18:48:09 +0000 (14:48 -0400)
committerTyler Romeo <tylerromeo@gmail.com>
Thu, 7 Aug 2014 17:38:16 +0000 (13:38 -0400)
commitd0439af89f6b254cea09b3773ab139f04f81a97d
treec4f47106783b8aaa019db4d9e01a83e2f32ceca8
parent00f2f62c841b3246c6b982e06cb9523d60ce0bc7
Make UserNotLoggedIn redirect to login page

For pages like Special:Watchlist that throw
a UserNotLoggedIn exception when the user is
anonymous, this patch makes the page redirect
to the login page automatically.

This is instead
of the current behavior of showing a link to
the login page that the user must click.

(Also, Special:Userlogin has existing functionality
that will redirect the user back once they are
logged in.)

Bug: 15484
Change-Id: Idd9325374cb5dc13c4c057f45f88a33bdff523a9
RELEASE-NOTES-1.24
includes/actions/WatchAction.php
includes/exception/UserNotLoggedIn.php
includes/specialpage/SpecialPage.php
includes/specials/SpecialUserlogin.php
languages/i18n/en.json
languages/i18n/qqq.json
tests/phpunit/includes/SpecialPageTest.php