Index: trunk/extensions/Translate/utils/TranslationHelpers.php |
— | — | @@ -430,7 +430,7 @@ |
431 | 431 | } |
432 | 432 | |
433 | 433 | protected static function makeGoogleQueryParams( $definition, $pair, $config ) { |
434 | | - global $wgSitename, $wgVersion, $wgProxyKey; |
| 434 | + global $wgSitename, $wgVersion, $wgProxyKey, $wgRequest; |
435 | 435 | $options = array(); |
436 | 436 | $options['timeout'] = $config['timeout']; |
437 | 437 | |
— | — | @@ -439,7 +439,7 @@ |
440 | 440 | 'v' => '1.0', |
441 | 441 | 'langpair' => $pair, |
442 | 442 | // Unique but not identifiable |
443 | | - 'userip' => sha1( $wgProxyKey . wfGetIp() ), |
| 443 | + 'userip' => sha1( $wgProxyKey . $wgRequest->getIP() ), |
444 | 444 | 'x-application' => "$wgSitename (MediaWiki $wgVersion; Translate " . TRANSLATE_VERSION . ")", |
445 | 445 | ); |
446 | 446 | |