Fix usage of non-static method.

This commit is contained in:
2013-06-01 21:11:20 +01:00
parent 3406489d72
commit 591383f287

View File

@@ -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;
}