diff --git a/includes/class-wc-geolocation.php b/includes/class-wc-geolocation.php index 84d4c53d2fb..c233beaeafa 100644 --- a/includes/class-wc-geolocation.php +++ b/includes/class-wc-geolocation.php @@ -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() ); } } diff --git a/readme.txt b/readme.txt index a5b90ed98fa..834d0608b75 100644 --- a/readme.txt +++ b/readme.txt @@ -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.