Fix usage of non-static method.
This commit is contained in:
1 parent
3406489d72
commit
591383f287
1 file changed
+1
-1
+1
-1
@@ -87,7 +87,7 @@ class CGeoIP extends CApplicationComponent {
|
||||
|
||||
protected function _getIP($ip=null) {
|
||||
if ($ip === null) {
|
||||
$ip = CHttpRequest::getUserHostAddress();
|
||||
$ip = Yii::app()->getRequest()->getUserHostAddress();
|
||||
}
|
||||
return $ip;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user