Fix checks to pass or display "return to" links in Special:UserLogin.
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Wed, 8 Aug 2012 10:04:42 +0000 (12:04 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Wed, 8 Aug 2012 10:13:17 +0000 (12:13 +0200)
commit56dbeaa4482ff031f8d270f65c66462375e4a1df
tree6faf34be12edf32c3e9d2ed0070730b41f0df1fa
parenta4228efac26aa75f98d73fb9b6466fe8d21cbb93
Fix checks to pass or display "return to" links in Special:UserLogin.

Currently it is not possible to have a "return to" link to the page
"0" because "empty( '0' )" is true.

- Groupped mReturnTo and mReturnToQuery definitions for better
  consistency.
- Changed default value of those members from null to '' when they
  are not provided so that it's easier to make strict comparison
- Changed empty() checks to strict comparison with '' to correctly
  display the links in the case mentionned above

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