From 1a5b215058b94af0a90df2c6c2f87960429e6aaf Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Mon, 27 Aug 2012 14:53:50 +0000
Subject: [PATCH] 1. Uzupełnienie instrukcji aktualizacji w zawiązku ze zmianami w bocie, 2. Poprawienie błędnego wywołania metody httpQuery() w pliku ./class/BotAPIGG.php, 3. Dodanie metody getPublicData() do klasy BotAPIGG, 4. Poprawienie błędnego warunku w pliku ./test.php, 5. Dodanie wywołania libxml_use_internal_errors() do ./class/std.php

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

diff --git a/modules/30_pogoda.php b/modules/30_pogoda.php
index 2b7f005..60cb39e 100644
--- a/modules/30_pogoda.php
+++ b/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) {

--
Gitblit v1.9.1