PluginProbe
wp-forecast / 3..5
wp-forecast v3..5
10.0 trunk 1.4 1.6 1.7 1.8 1.9 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3..5 3..8 3.0 3.1 3.2 3.3 3.4 3.6 All 86 releases
← All changes | func_bug.php +6 -5 2.93..5 View file →
@@ -320,9 +320,9 @@
320 320 $wpf_vars['wpf_language']=$language_override;
321 321 }
322 322
323 323 extract($wpf_vars);
324 - $w=unserialize(get_option("wp-forecast-cache".$wpfcid));
324 + $w=maybe_unserialize(wpf_get_option("wp-forecast-cache".$wpfcid));
325 325
326 326 // get translations
327 327 if(function_exists('load_textdomain')) {
328 328 global $l10n;
@@ -340,16 +340,17 @@
340 340 $weather_arr['locname']= $w["city"]." ".$w["state"];
341 341
342 342
343 343
344 - $ct = time(); // this is the GMT
344 + $ct = time(); // this is the GMT
345 + $ct = $ct + $wpf_vars['timeoffset'] * 60; // add or subtract time offset
345 346 $weather_arr['blogdate']=date_i18n($fc_date_format, $ct);
346 347 $weather_arr['blogtime']=date_i18n($fc_time_format, $ct);
347 348
348 349 $cts = $w['time'];
349 - $gmtoffset=0; // get_option("gmt_offset");
350 + $gmtoffset=0; // wpf_get_option("gmt_offset");
350 351 $ct = strtotime($cts) + ($gmtoffset * 3600);
351 - $ct = $ct + $wpf_vars['timeoffset'] * 60; // add or subtract time offset
352 +
352 353 $weather_arr['bugdate']=date_i18n($fc_date_format, $ct);
353 354 $weather_arr['bugtime']=date_i18n($fc_time_format, $ct);
354 355
355 356
@@ -368,9 +369,9 @@
368 369 $weather_arr['winddir']=translate_winddir($w["winddirection"],"wp-forecast_".$wpf_language);
369 370 $weather_arr['windgusts']=windstr($metric,$w["wgusts"],$windunit);
370 371 list($dummy, $weather_arr['sunrise']) = split(" ",$w['sunrise'],2);
371 372 list($dummy, $weather_arr['sunset'] ) = split(" ",$w['sunset'] ,2);
372 - $weather_arr['copyright']='<a href="http://www.weatherbug.com">&copy; 2009 WeatherBug</a>';
373 + $weather_arr['copyright']='<a href="http://www.weatherbug.com">&copy; 2010 WeatherBug</a>';
373 374
374 375 // additional info
375 376 $weather_arr['lat']=$w['lat'];
376 377 $weather_arr['lon']=$w['lon'];