summaryrefslogtreecommitdiff
path: root/app/models/Feed.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/Feed.php')
-rw-r--r--app/models/Feed.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/app/models/Feed.php b/app/models/Feed.php
index f183b2aa7..41eb3df23 100644
--- a/app/models/Feed.php
+++ b/app/models/Feed.php
@@ -96,14 +96,11 @@ class Feed extends Model {
return $this->nbNotRead;
}
public function favicon () {
- $file = '/favicons/' . $this->id () . '.ico';
-
- $favicon_url = Url::display ($file);
- if (!file_exists (PUBLIC_PATH . $file)) {
- download_favicon ($this->website (), $this->id ());
+ $file = DATA_PATH . '/favicons/' . $this->id () . '.txt';
+ if (!file_exists ($file)) {
+ file_put_contents($file, $this->website ());
}
-
- return $favicon_url;
+ return Url::display ('/f.php?' . $this->id ());
}
public function _id ($value) {