Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#32 leading zero in wind_dir value

phpweather-2.x
closed
nobody
Output (11)
5
2005-01-13
2004-07-19
No

To strip out the leading zero in the wind_dir change
the following line in pw_text.php:

$this->properties['mark_begin'] . $deg . '°' .

into:

$this->properties['mark_begin'] . ltrim($deg,'0') .
'°' .

Ron

Discussion

  • Martin Geisler
    Martin Geisler
    2005-01-13

    Logged In: YES
    user_id=104098

    Thanks for noticing this. I've fixed this in CVS and it
    will be part of the next release.

     
  • Martin Geisler
    Martin Geisler
    2005-01-13

    • status: open --> closed