[cvs] commit: horde/lib/Block metar.php

Jan Schneider jan at horde.org
Tue Dec 30 10:39:45 PST 2003


jan         2003/12/30 10:39:45 PST

  Modified files:
    lib/Block            metar.php 
  Log:
  1. There were a few instances in the remarks where the units were hard-coded
  (temperature to "f", precipitation amounts to "in"). I discovered during
  testing that the Services_Weather package returns these values converted based
  on the block parameters. So, if the user selects metric units, the temps are
  returned in celsius, but I was displaying "f" after them. This patch fixes
  those instances.
  
  2. In the remarks, I was displaying past temperatures and dew points on one
  line. I had an instance where the temp for the past hour was set, but the dew
  point wasn't, and an error was generated. This patch splits the temp and dew
  point into seperate lines (with a check for each being set).
  Submitted by: Rick Emery <rick at emery.homelinux.net>
  
  Revision  Changes    Path
  1.5       +38 -23    horde/lib/Block/metar.php

  Chora Links:
  http://cvs.horde.org/diff.php/horde/lib/Block/metar.php?r1=1.4&r2=1.5&ty=u


More information about the cvs mailing list