Fix for error during handling of HTTP error response case in Geonames lookups

This commit is contained in:
Brion Vibber 2010-04-08 10:11:52 -07:00
parent 8a02cad424
commit ecd31384ed
1 changed files with 1 additions and 1 deletions

View File

@ -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();