Moved Preferences::trySetUserEmail() to User::setEmailWithConfirmation()
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Mon, 2 Apr 2012 15:57:00 +0000 (17:57 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Tue, 3 Apr 2012 08:50:34 +0000 (10:50 +0200)
commiteb6df43f2e7f75b4107c6ff45b3497056c731153
tree20e6e185e755fa23e04522b50b34421523dd232d
parentfbfa5c0087e64c7d8206ade24a2007ec5d48bd1c
Moved Preferences::trySetUserEmail() to User::setEmailWithConfirmation()

* Much more easier to find it in the User class than in Preferences and it's general enough to be in that class.
* Rewrote the function for better readbility
* It now always return a Status object so that it's easier to interpret its result.
* Update the only caller in core (in Special:ChangeEmail) and moved the PrefsEmailAdit hook there

Change-Id: I55939bb5295e73594c3fdf7287dddbc16a233ce4
includes/Preferences.php
includes/User.php
includes/specials/SpecialChangeEmail.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc