missing }
This commit is contained in:
parent
85f45f37ce
commit
aa566989a3
|
@ -36,8 +36,7 @@ function simple_location_post_save($post_id) {
|
|||
$ipLite = new ip2location_lite;
|
||||
$ipLite->setKey($key);
|
||||
$locations = $ipLite->getCity($_SERVER['REMOTE_ADDR']);
|
||||
print 'locations: ';
|
||||
print_r($locations);
|
||||
}
|
||||
}
|
||||
if ($_POST['city'] == '') {
|
||||
$_POST['city'] = $locations['cityName'];
|
||||
|
|
Loading…
Reference in New Issue