When the geolocation database cannot download, ensure the correct method is used to log the error.

This commit is contained in:
Mike Jolley 2015-02-11 16:47:52 +00:00
parent 2da86accc8
commit c46f7f236d
2 changed files with 3 additions and 1 deletions

View File

@ -160,7 +160,7 @@ class WC_Geolocation {
}
@unlink( $tmp_database );
} else {
$logger->add( 'geolocation', 'Unable to download GeoIP Database: ' . $tmp_database->get_message() );
$logger->add( 'geolocation', 'Unable to download GeoIP Database: ' . $tmp_database->get_error_message() );
}
}

View File

@ -138,6 +138,8 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
== Changelog ==
* Fix - When the geolocation database cannot download, ensure the correct method is used to log the error.
= 2.3.0 - 11/02/2015 =
* Feature - Option to geo-locate the customer's inital location.
* Feature - Display taxes in store based on the customer location, rather than the shop base.