From a328f21333c2d04d29c15be8abf8459157341809 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Wed, 11 Jun 2014 20:57:52 +0000
Subject: [PATCH] [mod_pogoda] Dodanie specyfikatorów public do metod i atrybutów klasy api_yrno_parse

---
 data/tv/wp_parse.php |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/data/tv/wp_parse.php b/data/tv/wp_parse.php
index a1a3ecb..716f2df 100644
--- a/data/tv/wp_parse.php
+++ b/data/tv/wp_parse.php
@@ -37,7 +37,7 @@
 		}
 		$this->context = $context->item(0);
 		
-		$name = $this->xpath->query('.//h2[@class="sh2"]//span//text()', $this->context);
+		$name = $this->xpath->query('.//*[@class="sh2"]//span//text()', $this->context);
 		if($name->length != 1) {
 			throw new Exception('Nie znaleziono nazwy stacji, błędny HTML.');
 		}
@@ -95,11 +95,7 @@
 					$nazwa = $this->xpath->query('.//h3', $programs)->item(0)->textContent;
 					$opis = $this->xpath->query('.//p', $programs)->item(0)->textContent;
 					
-					$program[$num][] = array(
-						$godzina,
-						$nazwa,
-						$opis
-					);
+					$program[$num][] = array($godzina, $nazwa, $opis);
 				}
 				unset($programs_dom, $programs);
 			}
@@ -136,4 +132,4 @@
 		}
 	}
 }
-?>
\ No newline at end of file
+?>

--
Gitblit v1.9.1