From 587c933112187483fac09fae61a95eae1db84b98 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Sun, 03 Nov 2013 17:36:46 +0000
Subject: [PATCH] 1. Zmiana nazw kanałów AXN (Crime/Sci-Fi -> Black/White) 2. Usunięcie kanału RSS Linux News 3. Inne drobne zmiany (wspierane PHP >= 5.3)
---
class/DownloadHelper.php | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/class/DownloadHelper.php b/class/DownloadHelper.php
index 45cc866..6100222 100644
--- a/class/DownloadHelper.php
+++ b/class/DownloadHelper.php
@@ -3,14 +3,14 @@
protected $url;
protected $curl;
protected $headers = array();
- protected $data = NULL;
+ protected $return = NULL;
protected $cacheDir = './cache/';
protected $cacheFile;
protected $cacheInfo = array();
function build_url($components) {
- return $components['scheme'].'://'.($components['user'] ? $components['user'].($components['pass'] ? ':'.$components['pass'] : '').'@' : '').$components['host'].($components['path'] ? $components['path'] : '/').($components['query'] ? '?'.$components['query'] : '');
+ return $components['scheme'].'://'.(isset($components['user']) && !empty($components['user']) ? $components['user'].(isset($components['pass']) && !empty($components['pass']) ? ':'.$components['pass'] : '').'@' : '').$components['host'].(isset($components['path']) && !empty($components['path']) ? $components['path'] : '/').(isset($components['query']) && !empty($components['query']) ? '?'.$components['query'] : '');
}
function __construct($url) {
@@ -111,7 +111,6 @@
$this->cacheInfo['last_updated'] = time();
$info = $this->getinfo();
- var_dump($info);
if($info['http_code'] == '304') {
// Plik się nie zmienił...
--
Gitblit v1.9.1