Index: trunk/extensions/SemanticWatchlist/SemanticWatchlist.hooks.php |
— | — | @@ -77,9 +77,8 @@ |
78 | 78 | $user = User::newFromId( $userID ); |
79 | 79 | |
80 | 80 | if ( $user->getOption( 'swl_email', false ) ) { |
81 | | - $realFunction = array( 'Sanitizer', 'validateEmail' ); |
82 | 81 | |
83 | | - if ( !method_exists( $realFunction ) || Sanitizer::validateEmail( $user->getEmail() ) ) { |
| 82 | + if ( !method_exists( 'Sanitizer', 'validateEmail' ) || Sanitizer::validateEmail( $user->getEmail() ) ) { |
84 | 83 | $lastNotify = $user->getOption( 'swl_last_notify' ); |
85 | 84 | $lastWatch = $user->getOption( 'swl_last_watch' ); |
86 | 85 | |