aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2017-01-05 19:20:41 +0100
committerVirtualTam <virtualtam+github@flibidi.net>2017-01-05 19:51:50 +0100
commit724f1e322943b0506a4a4f17e78eaf4b2e464553 (patch)
treed9264b22ef720fab6578082fb442f36c5c08ba6c
parent69173356cd3e1862dbfd5072120e69ec48a11640 (diff)
downloadShaarli-724f1e322943b0506a4a4f17e78eaf4b2e464553.tar.gz
Shaarli-724f1e322943b0506a4a4f17e78eaf4b2e464553.tar.zst
Shaarli-724f1e322943b0506a4a4f17e78eaf4b2e464553.zip
Cleanup: remove unused variables
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
-rw-r--r--application/CachedPage.php4
-rw-r--r--index.php2
2 files changed, 1 insertions, 5 deletions
diff --git a/application/CachedPage.php b/application/CachedPage.php
index 5087d0c4..e11cc52d 100644
--- a/application/CachedPage.php
+++ b/application/CachedPage.php
@@ -7,9 +7,6 @@ class CachedPage
7 // Directory containing page caches 7 // Directory containing page caches
8 private $cacheDir; 8 private $cacheDir;
9 9
10 // Full URL of the page to cache -typically the value returned by pageUrl()
11 private $url;
12
13 // Should this URL be cached (boolean)? 10 // Should this URL be cached (boolean)?
14 private $shouldBeCached; 11 private $shouldBeCached;
15 12
@@ -27,7 +24,6 @@ class CachedPage
27 { 24 {
28 // TODO: check write access to the cache directory 25 // TODO: check write access to the cache directory
29 $this->cacheDir = $cacheDir; 26 $this->cacheDir = $cacheDir;
30 $this->url = $url;
31 $this->filename = $this->cacheDir.'/'.sha1($url).'.cache'; 27 $this->filename = $this->cacheDir.'/'.sha1($url).'.cache';
32 $this->shouldBeCached = $shouldBeCached; 28 $this->shouldBeCached = $shouldBeCached;
33 } 29 }
diff --git a/index.php b/index.php
index 2ed14d4f..0639e85f 100644
--- a/index.php
+++ b/index.php
@@ -617,7 +617,7 @@ function showDailyRSS($conf) {
617 $tpl->assign('links', $links); 617 $tpl->assign('links', $links);
618 $tpl->assign('rssdate', escape($dayDate->format(DateTime::RSS))); 618 $tpl->assign('rssdate', escape($dayDate->format(DateTime::RSS)));
619 $tpl->assign('hide_timestamps', $conf->get('privacy.hide_timestamps', false)); 619 $tpl->assign('hide_timestamps', $conf->get('privacy.hide_timestamps', false));
620 $html = $tpl->draw('dailyrss', $return_string=true); 620 $html = $tpl->draw('dailyrss', true);
621 621
622 echo $html . PHP_EOL; 622 echo $html . PHP_EOL;
623 } 623 }