aboutsummaryrefslogtreecommitdiff
path: root/app/models/Feed.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2012-11-07 22:49:08 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2012-11-07 22:49:08 +0100
commit0e04556f12cd944d0b10fde972266822cc11dfa1 (patch)
treefbbe070874f5ee2cea403f63092dfe6dac8139ed /app/models/Feed.php
parent403923d3d12ed8316fd56ab758547b0352fb0ceb (diff)
Suppression de la limite pour charger les flux : la nouvelle librairie permet de s'en affranchir
Diffstat (limited to 'app/models/Feed.php')
-rw-r--r--app/models/Feed.php6
1 files changed, 0 insertions, 6 deletions
diff --git a/app/models/Feed.php b/app/models/Feed.php
index fce2b5d65..7568069b0 100644
--- a/app/models/Feed.php
+++ b/app/models/Feed.php
@@ -88,7 +88,6 @@ class Feed extends Model {
private function loadEntries ($feed) {
$entries = array ();
- $i = 1;
foreach ($feed->get_items () as $item) {
$title = $item->get_title ();
$author = $item->get_author ();
@@ -101,7 +100,6 @@ class Feed extends Model {
if ($path) {
try {
$content = get_content_by_parsing ($item->get_permalink (), $path);
- $i++;
} catch (Exception $e) {
$content = $item->get_content ();
}
@@ -120,10 +118,6 @@ class Feed extends Model {
);
$entries[$entry->id ()] = $entry;
-
- if ($i > 10) {
- break;
- }
}
$this->entries = $entries;