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.

---
 data/tv/pobierz.php |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/data/tv/pobierz.php b/data/tv/pobierz.php
index 279e08f..ccb93bd 100644
--- a/data/tv/pobierz.php
+++ b/data/tv/pobierz.php
@@ -58,7 +58,9 @@
 	217 => 'ZigZap',
 	361 => 'Cartoon Network',
 );
-$NUMOF = count($stations)*7;
+$NUMOF = count($stations);
+
+ini_set('mbstring.substitute_character', 'none');
 
 $c = curl_init();
 $out = fopen('./xmltv-pre.xml', 'w');
@@ -85,11 +87,12 @@
 			return;
 		}
 		
+		$data = mb_convert_encoding($data, 'UTF-8', 'UTF-8');
 		file_put_contents('./cache/'.$num.'_'.$date, $data);
 		unset($data);
 	}
 	
-	$doc = new DOMDocument;
+	$doc = new DOMDocument('1.0', 'utf-8');
 	@$doc->loadHTMLFile('./cache/'.$num.'_'.$date);
 	
 	$wp = new wp_parse($doc);
@@ -114,4 +117,4 @@
 	}
 }
 echo OK;
-?>
+?>
\ No newline at end of file

--
Gitblit v1.9.1