From: umherirrender Date: Fri, 26 Sep 2014 19:28:00 +0000 (+0200) Subject: Remove Preferences::trySetUserEmail (deprecated 1.20) X-Git-Tag: 1.31.0-rc.0~13792^2 X-Git-Url: http://git.cyclocoop.org/%22%20%20.%20generer_url_ecrire%28%22mots_tous%22%29%20.%20%22?a=commitdiff_plain;h=d041222faea6355342446aeb89177a84c7c30cfd;p=lhc%2Fweb%2Fwiklou.git Remove Preferences::trySetUserEmail (deprecated 1.20) Change-Id: I31b008c93eae54b2aecc18154d0c2e3df3fdb712 --- diff --git a/RELEASE-NOTES-1.25 b/RELEASE-NOTES-1.25 index 0e100285b4..22033cffe0 100644 --- a/RELEASE-NOTES-1.25 +++ b/RELEASE-NOTES-1.25 @@ -38,6 +38,7 @@ changes to languages because of Bugzilla reports. * Removed ApiQueryUsers::getAutoGroups(). (deprecated since 1.20) * Removed XmlDumpWriter::schemaVersion(). (deprecated since 1.20) * Removed LogEventsList::getDisplayTitle(). (deprecated since 1.20) +* Removed Preferences::trySetUserEmail(). (deprecated since 1.20) == Compatibility == diff --git a/includes/Preferences.php b/includes/Preferences.php index 98fc936df4..8fa2f9adda 100644 --- a/includes/Preferences.php +++ b/includes/Preferences.php @@ -1467,28 +1467,6 @@ class Preferences { return Status::newGood(); } - - /** - * Try to set a user's email address. - * This does *not* try to validate the address. - * Caller is responsible for checking $wgAuth and 'editmyprivateinfo' - * right. - * - * @deprecated since 1.20; use User::setEmailWithConfirmation() instead. - * @param User $user - * @param string $newaddr New email address - * @return array (true on success or Status on failure, info string) - */ - public static function trySetUserEmail( User $user, $newaddr ) { - wfDeprecated( __METHOD__, '1.20' ); - - $result = $user->setEmailWithConfirmation( $newaddr ); - if ( $result->isGood() ) { - return array( true, $result->value ); - } else { - return array( $result, 'mailerror' ); - } - } } /** Some tweaks to allow js prefs to work */