parse rss in reverse to respect timing
This commit is contained in:
		
							parent
							
								
									dc707dcf1e
								
							
						
					
					
						commit
						9a52832348
					
				
							
								
								
									
										4
									
								
								epub.php
								
								
								
								
							
							
						
						
									
										4
									
								
								epub.php
								
								
								
								
							|  | @ -396,7 +396,7 @@ | ||||||
| 		$xml = new SimpleXMLElement($feed); | 		$xml = new SimpleXMLElement($feed); | ||||||
| 		$items = $xml->xpath("/rss/channel/item"); | 		$items = $xml->xpath("/rss/channel/item"); | ||||||
| 
 | 
 | ||||||
| 		foreach ($items as $item) | 		foreach (array_reverse($items) as $item) | ||||||
| 		{ | 		{ | ||||||
| 			add_mp_article($item->link, $context, $epub); | 			add_mp_article($item->link, $context, $epub); | ||||||
| 		} | 		} | ||||||
|  | @ -518,7 +518,7 @@ | ||||||
| 		$xml = new SimpleXMLElement($feed); | 		$xml = new SimpleXMLElement($feed); | ||||||
| 		$items = $xml->xpath("/rss/channel/item"); | 		$items = $xml->xpath("/rss/channel/item"); | ||||||
| 
 | 
 | ||||||
| 		foreach ($items as $item) | 		foreach (array_reverse($items) as $item) | ||||||
| 		{ | 		{ | ||||||
| 			$title = $item->title; | 			$title = $item->title; | ||||||
| 			$author = $item->xpath('dc:creator')[0]; | 			$author = $item->xpath('dc:creator')[0]; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 quenousimporte
						quenousimporte