From 9b2b4aae8c259d90b13c5843e75076090f7e79bc Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Wed, 29 Aug 2012 12:42:14 +0000
Subject: [PATCH] 1. Poprawka błędnej nazwy pola klasy DownloadHelper, 2. Zmiany struktur oraz sposobu generowania HTML w pliku ./modules/30_pogoda/api_yrno.php, 3. Uwzględnienie w/w zmian w module pogoda.

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

diff --git a/modules/30_pogoda/api_geonames.php b/modules/30_pogoda/api_geonames.php
index 5463ea8..6230ad8 100644
--- a/modules/30_pogoda/api_geonames.php
+++ b/modules/30_pogoda/api_geonames.php
@@ -15,7 +15,7 @@
 			}
 			
 			libxml_use_internal_errors();
-			$data = simplexml_load_string();
+			$data = simplexml_load_string($data);
 			libxml_clear_errors();
 			
 			if(!$data) {
@@ -34,7 +34,7 @@
 				return NULL;
 			}
 			
-			$data = (array)$this->geoname[0];
+			$data = (array)$data->geoname[0];
 			foreach($data as &$value) {
 				$value = trim($value);
 			}

--
Gitblit v1.9.1