From d13e10a0a130d8ce244d2883e9f7111026e49823 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Fri, 15 May 2009 16:43:09 +0000 Subject: [PATCH] Don't need to use $wgUser, isValidEmailAddr() is static. --- includes/Preferences.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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' ); } -- 2.20.1