Cleanup: remove unused variables
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
This commit is contained in:
parent
69173356cd
commit
724f1e3229
2 changed files with 1 additions and 5 deletions
|
@ -7,9 +7,6 @@ class CachedPage
|
||||||
// Directory containing page caches
|
// Directory containing page caches
|
||||||
private $cacheDir;
|
private $cacheDir;
|
||||||
|
|
||||||
// Full URL of the page to cache -typically the value returned by pageUrl()
|
|
||||||
private $url;
|
|
||||||
|
|
||||||
// Should this URL be cached (boolean)?
|
// Should this URL be cached (boolean)?
|
||||||
private $shouldBeCached;
|
private $shouldBeCached;
|
||||||
|
|
||||||
|
@ -27,7 +24,6 @@ public function __construct($cacheDir, $url, $shouldBeCached)
|
||||||
{
|
{
|
||||||
// TODO: check write access to the cache directory
|
// TODO: check write access to the cache directory
|
||||||
$this->cacheDir = $cacheDir;
|
$this->cacheDir = $cacheDir;
|
||||||
$this->url = $url;
|
|
||||||
$this->filename = $this->cacheDir.'/'.sha1($url).'.cache';
|
$this->filename = $this->cacheDir.'/'.sha1($url).'.cache';
|
||||||
$this->shouldBeCached = $shouldBeCached;
|
$this->shouldBeCached = $shouldBeCached;
|
||||||
}
|
}
|
||||||
|
|
|
@ -617,7 +617,7 @@ function showDailyRSS($conf) {
|
||||||
$tpl->assign('links', $links);
|
$tpl->assign('links', $links);
|
||||||
$tpl->assign('rssdate', escape($dayDate->format(DateTime::RSS)));
|
$tpl->assign('rssdate', escape($dayDate->format(DateTime::RSS)));
|
||||||
$tpl->assign('hide_timestamps', $conf->get('privacy.hide_timestamps', false));
|
$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;
|
echo $html . PHP_EOL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue