| Summary: | Services_Weather pear bug with horde 3 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Julien Allanos (RETIRED) <dju> |
| Component: | Current packages | Assignee: | PHP Bugs <php-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
Fixed in www-apps/horde-pear-1.3-r2. thanks, and welcome :) |
There is a typo bug in horde-pear-1.3-r1, which appears when using horde-3 weather.com block. Suggested fix is to update Services_Weather pear package. The diff for /usr/lib/php/Services/Weather/Weatherdotcom.php is as follow: --- Weatherdotcom.php.orig 2005-01-27 10:47:59.781788581 +0100 +++ Weatherdotcom.php 2005-01-27 10:48:10.653135035 +0100 @@ -446,7 +446,7 @@ for ($i = 0; $i < $days; $i++) { $day = array( - "tempertureHigh" => $this->convertTemperature($this->_forecast->day[$i]->hi, "f", $units["temp"]), + "temperatureHigh" => $this->convertTemperature($this->_forecast->day[$i]->hi, "f", $units["temp"]), "temperatureLow" => $this->convertTemperature($this->_forecast->day[$i]->low, "f", $units["temp"]), "sunrise" => date($this->_timeFormat, strtotime($this->_forecast->day[$i]->sunr)), "sunset" => date($this->_timeFormat, strtotime($this->_forecast->day[$i]->suns)),