summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrandon Bergren2008-08-18 15:24:25 (GMT)
committer Brandon Bergren2008-08-18 15:24:25 (GMT)
commit9b96a71e29a71696bdc3dba4c09ca287302858eb (patch)
tree8afb24b94181ad94fd20fd90795294989b495af8
parent725721c00f70b80a09535c053d96e4e1f3aad663 (diff)
Fix location_latlon_rough by loading the country file.
-rw-r--r--location.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/location.inc b/location.inc
index 6d86b93..9062436 100644
--- a/location.inc
+++ b/location.inc
@@ -288,6 +288,8 @@ function location_latlon_rough($location = array()) {
return NULL;
}
+ location_load_country($location['country']);
+
$latlon_function = 'location_latlon_rough_'. $location['country'];
if (function_exists($latlon_function)) {
return $latlon_function($location);
@@ -471,7 +473,6 @@ function location_province_name($country = 'us', $province = 'xx') {
}
}
-
// @@@ New in 3.x, document.
/**
* Canonicalize a country code.