Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79684 - Services_Weather pear bug with horde 3
Summary: Services_Weather pear bug with horde 3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-27 01:48 UTC by Julien Allanos (RETIRED)
Modified: 2005-02-15 00:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Allanos (RETIRED) gentoo-dev 2005-01-27 01:48:44 UTC
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)),
Comment 1 Sebastian Bergmann (RETIRED) gentoo-dev 2005-02-15 00:14:57 UTC
Fixed in www-apps/horde-pear-1.3-r2.
Comment 2 Julien Allanos (RETIRED) gentoo-dev 2005-02-15 00:36:10 UTC
thanks, and welcome :)