From 06b1e02a5e8ad38c032aecd8e9cd822bda2254bf Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Fri, 22 Jul 2011 16:17:18 +0300 Subject: [PATCH] Default cache dir now sniffed from __FILE__ --- bassofeed.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bassofeed.php b/bassofeed.php index 3dfdac1..ca16114 100644 --- a/bassofeed.php +++ b/bassofeed.php @@ -65,7 +65,7 @@ class BassoFeed { } else { $this->multiple_shows = false; $this->show = $show; - $this->cachefile = "./cache/{$this->show}.txt"; + $this->cachefile = dirname(__FILE__) . DIRECTORY_SEPARATOR . "cache/{$this->show}.txt"; $this->cachetime = 900; $this->generate(); @@ -82,7 +82,7 @@ class BassoFeed { foreach ($array as $show) { $this->show = $show; - $this->cachefile = "./cache/{$this->show}.txt"; + $this->cachefile = dirname(__FILE__) . DIRECTORY_SEPARATOR . "cache/{$this->show}.txt"; $data = $this->cache(); $this->showtimes[$show] = $this->get_showtimes($data);