specials: Simplify return logic of various SpecialUserlogin methods
authorTimo Tijhof <krinklemail@gmail.com>
Sun, 31 May 2015 15:30:01 +0000 (16:30 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Sun, 14 Jun 2015 02:27:17 +0000 (03:27 +0100)
commit9d323de4c5e88eb85a497203d15c254e4a258aa7
tree35311026e1fd594d4562cbba15b9ec0f1d78a021
parentf814f15d433cfcb951802bf3074efdaddc34e74a
specials: Simplify return logic of various SpecialUserlogin methods

* Handle exceptional case before common case in makeLanguageSelector
  by using early returns. Better reflects the intended effect
  of the exception by making it harder to accidentally run code
  after the 'else' statement.

Change-Id: I710a94adf22bc4e6dc539e12c69e4ba96bf1068c
includes/specials/SpecialUserlogin.php