From befc460353c67201fd1322b5421edd3349ee730e Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Wed, 29 Aug 2012 13:02:41 +0000
Subject: [PATCH] Poprawka błędnego użycia tablicy zwracanej w API yr.no w module pogoda.
---
modules/30_pogoda/handler.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/30_pogoda/handler.php b/modules/30_pogoda/handler.php
index 40a1691..f095039 100644
--- a/modules/30_pogoda/handler.php
+++ b/modules/30_pogoda/handler.php
@@ -77,10 +77,10 @@
$weather = $api->getCurrentWeather();
$out->a('<p><b>Teraz</b><br />'."\n"
- . '<img src="./data/pogoda/'.$icon.'.png" />'."\n"
+ . '<img src="./data/pogoda/'.$icon.'.png" /><br />'."\n"
. api_yrno_parse::$symbols[$icon].'<br />'."\n"
. 'Temp.: '.htmlspecialchars($weather['temp']).'°C<br />'."\n"
- . 'Wiatr: '.htmlspecialchars($weather['wind_speed']).' km/h, '.api_yrno_parse::wind($weather['wind_direction']).'<br />'."\n"
+ . 'Wiatr: '.htmlspecialchars($weather['wind_speed']).' km/h, '.api_yrno_parse::wind($weather['wind_dir']).'<br />'."\n"
. 'Ciśnienie: '.htmlspecialchars($weather['pressure']).' hPa</p>'."\n\n");
$when = time();
--
Gitblit v1.9.1