mirror of
https://github.com/ivuorinen/BassoFeed.git
synced 2026-01-26 03:23:59 +00:00
Default cache dir now sniffed from __FILE__
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user