summaryrefslogtreecommitdiff
path: root/app/Models/Feed.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-08-19 21:39:45 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-08-19 21:39:45 +0200
commit0d0b8cd39b8de765aa351a2e66fff850bdcb2000 (patch)
treeca3f30f4983cb1b799a175d41a36d267d950892e /app/Models/Feed.php
parent50075bfbdcd6a7be010eb82ce1fffac0ea283de7 (diff)
Error when feed does not exist
https://github.com/marienfressinaud/FreshRSS/issues/579
Diffstat (limited to 'app/Models/Feed.php')
-rw-r--r--app/Models/Feed.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php
index fe1e52ea2..2a5ea45ac 100644
--- a/app/Models/Feed.php
+++ b/app/Models/Feed.php
@@ -28,6 +28,12 @@ class FreshRSS_Feed extends Minz_Model {
}
}
+ public static function example() {
+ $f = new FreshRSS_Feed('http://example.net/', false);
+ $f->faviconPrepare();
+ return $f;
+ }
+
public function id() {
return $this->id;
}