aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/models/Feed.php3
-rw-r--r--lib/lib_rss.php5
2 files changed, 2 insertions, 6 deletions
diff --git a/app/models/Feed.php b/app/models/Feed.php
index d4ff00e21..2260f6fdf 100644
--- a/app/models/Feed.php
+++ b/app/models/Feed.php
@@ -100,8 +100,7 @@ class Feed extends Model {
$favicon_url = Url::display ($file);
if (!file_exists (PUBLIC_PATH . $file)) {
- $base_url = dowload_favicon ($this->website (), $this->id ());
- $favicon_url = Url::display ($base_url);
+ download_favicon ($this->website (), $this->id ());
}
return $favicon_url;
diff --git a/lib/lib_rss.php b/lib/lib_rss.php
index 5a74bfd0a..08e65a45f 100644
--- a/lib/lib_rss.php
+++ b/lib/lib_rss.php
@@ -181,11 +181,10 @@ function get_content_by_parsing ($url, $path) {
}
/* Télécharge le favicon d'un site, le place sur le serveur et retourne l'URL */
-function dowload_favicon ($website, $id) {
+function download_favicon ($website, $id) {
$url = 'http://g.etfv.co/' . $website;
$favicons_dir = PUBLIC_PATH . '/favicons';
$dest = $favicons_dir . '/' . $id . '.ico';
- $favicon_url = '/favicons/' . $id . '.ico';
if (!is_dir ($favicons_dir)) {
if (!mkdir ($favicons_dir, 0755, true)) {
@@ -214,8 +213,6 @@ function dowload_favicon ($website, $id) {
curl_close ($c);
}
-
- return $favicon_url;
}
/**