Default cache dir now sniffed from __FILE__

This commit is contained in:
Ismo Vuorinen
2011-07-22 16:17:18 +03:00
parent 9e34fdb4dd
commit 06b1e02a5e

View File

@@ -65,7 +65,7 @@ class BassoFeed {
} else { } else {
$this->multiple_shows = false; $this->multiple_shows = false;
$this->show = $show; $this->show = $show;
$this->cachefile = "./cache/{$this->show}.txt"; $this->cachefile = dirname(__FILE__) . DIRECTORY_SEPARATOR . "cache/{$this->show}.txt";
$this->cachetime = 900; $this->cachetime = 900;
$this->generate(); $this->generate();
@@ -82,7 +82,7 @@ class BassoFeed {
foreach ($array as $show) { foreach ($array as $show) {
$this->show = $show; $this->show = $show;
$this->cachefile = "./cache/{$this->show}.txt"; $this->cachefile = dirname(__FILE__) . DIRECTORY_SEPARATOR . "cache/{$this->show}.txt";
$data = $this->cache(); $data = $this->cache();
$this->showtimes[$show] = $this->get_showtimes($data); $this->showtimes[$show] = $this->get_showtimes($data);