Menu

#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

  • Anonymous

    Anonymous - 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.

     
  • Anonymous

    Anonymous - 2005-01-13
    • status: open --> closed
     

Log in to post a comment.