Index: trunk/extensions/SemanticSignup/includes/SES_Special.php |
— | — | @@ -47,10 +47,10 @@ |
48 | 48 | } |
49 | 49 | |
50 | 50 | global $wgAccountCreationThrottle; |
51 | | - global $wgUser; |
| 51 | + global $wgUser, $wgRequest; |
52 | 52 | |
53 | 53 | if ( $wgAccountCreationThrottle && $wgUser->isPingLimitable() ) { |
54 | | - $key = wfMemcKey( 'acctcreate', 'ip', wfGetIP() ); |
| 54 | + $key = wfMemcKey( 'acctcreate', 'ip', $wgRequest->getIP() ); |
55 | 55 | $value = $wgMemc->incr( $key ); |
56 | 56 | |
57 | 57 | if ( !$value ) { |
Index: trunk/extensions/SemanticSignup/includes/SES_UserAccountDataChecker.php |
— | — | @@ -71,8 +71,8 @@ |
72 | 72 | public function checkSorbs() |
73 | 73 | { |
74 | 74 | global $wgProxyWhitelist; |
75 | | - global $wgEnableSorbs; |
76 | | - $ip = wfGetIP(); |
| 75 | + global $wgEnableSorbs, $wgRequest; |
| 76 | + $ip = $wgRequest->getIP(); |
77 | 77 | if ( $wgEnableSorbs && !in_array( $ip, $wgProxyWhitelist ) && |
78 | 78 | $wgUser->inSorbsBlacklist( $ip ) ) |
79 | 79 | $this->error( wfMsg( 'sorbs_create_account_reason' ) ); |