Ver Fonte

Suppression de la limite pour charger les flux : la nouvelle librairie permet de s'en affranchir

Marien Fressinaud há 13 anos atrás
pai
commit
0e04556f12
1 ficheiros alterados com 0 adições e 6 exclusões
  1. 0 6
      app/models/Feed.php

+ 0 - 6
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;