summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-04-08 10:11:52 -0700
committerBrion Vibber <brion@pobox.com>2010-04-08 10:11:52 -0700
commitecd31384ed9560aac350085733af4039cf344c8a (patch)
tree5bfaa488360737ca4d0a129c029596d904f74797
parent8a02cad42468c628b7b77910458c706c5d26f4df (diff)
Fix for error during handling of HTTP error response case in Geonames lookups
-rw-r--r--plugins/GeonamesPlugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/GeonamesPlugin.php b/plugins/GeonamesPlugin.php
index 718af9e0b..bc5899943 100644
--- a/plugins/GeonamesPlugin.php
+++ b/plugins/GeonamesPlugin.php
@@ -458,7 +458,7 @@ class GeonamesPlugin extends Plugin
}
if (!$result->isOk()) {
- throw new Exception("HTTP error code " . $result->code);
+ throw new Exception("HTTP error code " . $result->getStatus());
}
$body = $result->getBody();