From 57117dd2614bd14808e391a7f1ae20ade00b8d5b Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Sat, 25 Aug 2012 18:28:59 +0000
Subject: [PATCH] 1. Przeportowanie modułu data do nowej wersji API. 2. Dodanie metody setClass() do klasy BotSession. 3. Aktualizacja "Instrukcji tworzenia modułów" o w/w metodę.

---
 modules/30_pogoda.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/30_pogoda.php b/modules/30_pogoda.php
index 14b9145..60cb39e 100644
--- a/modules/30_pogoda.php
+++ b/modules/30_pogoda.php
@@ -167,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) {

--
Gitblit v1.9.1