make geocoding operations conditional
This commit is contained in:
parent
d0b8de3068
commit
8eb141fdcd
|
@ -176,10 +176,14 @@ function gcal_import_do_import($category, $link) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// geocoden
|
// geocoden
|
||||||
$location = urldecode ($r['LOCATION']);
|
$options = get_option('gcal_options');
|
||||||
$my_latlon = gcal_import_geocode($location);
|
if ( $options['gcal_geocoding'] != "off" ) {
|
||||||
$file = dirname (__FILE__) . "/latlon-$hash.txt";
|
|
||||||
file_put_contents ($file, var_export ($my_latlon, TRUE));
|
$location = urldecode ($r['LOCATION']);
|
||||||
|
$my_latlon = gcal_import_geocode($location);
|
||||||
|
$file = dirname (__FILE__) . "/latlon-$hash.txt";
|
||||||
|
file_put_contents ($file, var_export ($my_latlon, TRUE));
|
||||||
|
}
|
||||||
|
|
||||||
// create a default form
|
// create a default form
|
||||||
// $post = get_default_post_to_edit ('termine', false);
|
// $post = get_default_post_to_edit ('termine', false);
|
||||||
|
|
Reference in New Issue