mirror of
https://bitbucket.org/vertlach/voteny.git
synced 2024-05-01 11:29:19 +03:00
Remove use of deprecated wfGetIP()
Change-Id: Id08e2343e13ed9d3b729e19ec181cdce5602fe8a
This commit is contained in:
parent
793c08d1d7
commit
6788f6efff
|
@ -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__
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue