Fix usage of non-static method.

This commit is contained in:
dlage committed 2013-06-01 21:11:20 +01:00
1 parent 3406489d72
commit 591383f287
1 file changed
+1 -1
+1 -1
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;
}