]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Cleanup: remove unused variables
authorVirtualTam <virtualtam@flibidi.net>
Thu, 5 Jan 2017 18:20:41 +0000 (19:20 +0100)
committerVirtualTam <virtualtam+github@flibidi.net>
Thu, 5 Jan 2017 18:51:50 +0000 (19:51 +0100)
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
application/CachedPage.php
index.php

index 5087d0c4b6b1fd6182fcd4564497d6531c78754b..e11cc52d01e3aeac07142c476d76e35bf7b88229 100644 (file)
@@ -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;
     }
index 2ed14d4f2f3ac67ed6bd5e041fc434b27a7aa050..0639e85f32a82bf90de26f3087a496287d4a3d49 100644 (file)
--- 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;
     }