Remove use of deprecated wfGetIP()

Change-Id: Id08e2343e13ed9d3b729e19ec181cdce5602fe8a
This commit is contained in:
addshore 2014-08-29 13:43:09 +01:00
parent 793c08d1d7
commit 6788f6efff

View file

@ -145,6 +145,7 @@ class Vote {
* @param $voteValue
*/
function insert( $voteValue ) {
global $wgRequest;
$dbw = wfGetDB( DB_MASTER );
wfSuppressWarnings(); // E_STRICT whining
$voteDate = date( 'Y-m-d H:i:s' );
@ -159,7 +160,7 @@ class Vote {
'vote_page_id' => $this->PageID,
'vote_value' => $voteValue,
'vote_date' => $voteDate,
'vote_ip' => wfGetIP()
'vote_ip' => $wgRequest->getIP(),
),
__METHOD__
);