Index: trunk/extensions/Translate/utils/TranslationHelpers.php |
— | — | @@ -484,7 +484,7 @@ |
485 | 485 | } |
486 | 486 | |
487 | 487 | protected static function makeGoogleQueryParams( $definition, $pair, $config ) { |
488 | | - global $wgSitename, $wgVersion, $wgProxyKey, $wgRequest; |
| 488 | + global $wgSitename, $wgVersion, $wgProxyKey, $wgUser; |
489 | 489 | $options = array(); |
490 | 490 | $options['timeout'] = $config['timeout']; |
491 | 491 | |
— | — | @@ -493,7 +493,7 @@ |
494 | 494 | 'v' => '1.0', |
495 | 495 | 'langpair' => $pair, |
496 | 496 | // Unique but not identifiable |
497 | | - 'userip' => sha1( $wgProxyKey . ( method_exists( $wgRequest, 'getIP' ) ? $wgRequest->getIP() : wfGetIP() ) ), |
| 497 | + 'userip' => sha1( $wgProxyKey . $wgUser->getName() ), |
498 | 498 | 'x-application' => "$wgSitename (MediaWiki $wgVersion; Translate " . TRANSLATE_VERSION . ")", |
499 | 499 | ); |
500 | 500 | |