aboutsummaryrefslogtreecommitdiff
path: root/lib/favicons.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-04-22 23:36:41 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-04-22 23:36:41 +0200
commit57f1e9d6570e86f1bc679ed4897437ae4b14a2b5 (patch)
treec0d4cf20c3f40c1d0b6193f832b9e78dc66cee15 /lib/favicons.php
parente647f660bbb8f4a8c87843c5fa6e4aab79ab8fe1 (diff)
Fix some bugs of Favicon 1.2
https://github.com/ArthurHoaro/favicon/pull/6 https://github.com/ArthurHoaro/favicon/pull/7
Diffstat (limited to 'lib/favicons.php')
-rw-r--r--lib/favicons.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/favicons.php b/lib/favicons.php
index 0e80aa145..93e570d27 100644
--- a/lib/favicons.php
+++ b/lib/favicons.php
@@ -12,10 +12,10 @@ function download_favicon($website, $dest) {
syslog(LOG_INFO, 'FreshRSS Favicon discovery GET ' . $website);
$favicon_getter = new \Favicon\Favicon();
- $tmpPath = realpath(TMP_PATH) . '/';
+ $tmpPath = realpath(TMP_PATH);
$favicon_getter->setCacheDir($tmpPath);
$favicon_path = $favicon_getter->get($website, \Favicon\FaviconDLType::DL_FILE_PATH);
- return ($favicon_path != false && @rename($tmpPath . $favicon_path, $dest)) ||
+ return ($favicon_path != false && @rename($tmpPath . '/' . $favicon_path, $dest)) ||
@copy($default_favicon, $dest);
}