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>
Tue, 15 Jul 2014 18:48:09 +0000 (14:48 -0400)
commite0af129cbdb7421b4d9d7858cc63125e12f35a4a
tree2d1903788d29e6342dc57ce7b57fe0f54c04bae2
parent186d35e037c859da661f7939ed93c0beb5d7da34
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: Ic7e1d5a8984e1b42c8f2ebceff094106a3ed1efa
includes/exception/UserNotLoggedIn.php