Skip to content

Commit

Permalink
Fix usage of non-static method.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlage committed Jun 1, 2013
1 parent 3406489 commit 591383f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CGeoIP.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function lookupRegion($ip=null) {

protected function _getIP($ip=null) {
if ($ip === null) {
$ip = CHttpRequest::getUserHostAddress();
$ip = Yii::app()->getRequest()->getUserHostAddress();
}
return $ip;
}
Expand Down

0 comments on commit 591383f

Please sign in to comment.