From 724f1e322943b0506a4a4f17e78eaf4b2e464553 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Thu, 5 Jan 2017 19:20:41 +0100 Subject: [PATCH] Cleanup: remove unused variables Signed-off-by: VirtualTam --- application/CachedPage.php | 4 ---- index.php | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/application/CachedPage.php b/application/CachedPage.php index 5087d0c..e11cc52 100644 --- a/application/CachedPage.php +++ b/application/CachedPage.php @@ -7,9 +7,6 @@ class CachedPage // Directory containing page caches private $cacheDir; - // Full URL of the page to cache -typically the value returned by pageUrl() - private $url; - // Should this URL be cached (boolean)? private $shouldBeCached; @@ -27,7 +24,6 @@ class CachedPage { // TODO: check write access to the cache directory $this->cacheDir = $cacheDir; - $this->url = $url; $this->filename = $this->cacheDir.'/'.sha1($url).'.cache'; $this->shouldBeCached = $shouldBeCached; } diff --git a/index.php b/index.php index 2ed14d4..0639e85 100644 --- a/index.php +++ b/index.php @@ -617,7 +617,7 @@ function showDailyRSS($conf) { $tpl->assign('links', $links); $tpl->assign('rssdate', escape($dayDate->format(DateTime::RSS))); $tpl->assign('hide_timestamps', $conf->get('privacy.hide_timestamps', false)); - $html = $tpl->draw('dailyrss', $return_string=true); + $html = $tpl->draw('dailyrss', true); echo $html . PHP_EOL; }