From: Chad Horohoe Date: Fri, 15 May 2009 16:43:09 +0000 (+0000) Subject: Don't need to use $wgUser, isValidEmailAddr() is static. X-Git-Tag: 1.31.0-rc.0~41791 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=d13e10a0a130d8ce244d2883e9f7111026e49823;p=lhc%2Fweb%2Fwiklou.git Don't need to use $wgUser, isValidEmailAddr() is static. --- diff --git a/includes/Preferences.php b/includes/Preferences.php index 7bb8200190..659af5a872 100644 --- a/includes/Preferences.php +++ b/includes/Preferences.php @@ -993,9 +993,7 @@ class Preferences { } static function validateEmail( $email, $alldata ) { - global $wgUser; // To check - - if ( $email && !$wgUser->isValidEmailAddr( $email ) ) { + if ( $email && !User::isValidEmailAddr( $email ) ) { return wfMsgExt( 'invalidemailaddress', 'parseinline' ); }