Jacek Kowalski
2012-08-12 9dae9f90d578b5433df4664c6d1d6406074ca08f
modules/30_pogoda.php
@@ -106,6 +106,8 @@
   }
   
   static function cmd_pogoda($name, $arg) {
      $forced = FALSE;
      if(empty($arg)) {
         $arg = database::get($_GET['from'], 'pogoda', 'miasto');
         if(empty($arg)) {
@@ -165,7 +167,7 @@
      self::putIcon((string)$dane->weather->current_conditions->icon['data']);
      
      $condition = (string)$dane->weather->current_conditions->condition['data'];
      GGapi::putRichText($txt.($condition ? $condition."\n" : '').'Temp.: '.($dane->weather->current_conditions->temp_c['data']).'°C'."\n".($dane->weather->current_conditions->humidity['data'])."\n".($dane->weather->current_conditions->wind_condition['data']));
      GGapi::putRichText(($condition ? $condition."\n" : '').'Temp.: '.($dane->weather->current_conditions->temp_c['data']).'°C'."\n".($dane->weather->current_conditions->humidity['data'])."\n".($dane->weather->current_conditions->wind_condition['data']));
      
      $num = TRUE;
      foreach($dane->weather->forecast_conditions as $day) {