[ZoneTelechargementBridge] Sort episodes from newest to oldest (#835)

References #834
This commit is contained in:
sysadminstory 2018-09-21 20:22:49 +02:00 committed by LogMANOriginal
parent db24f55c86
commit c044694b21

View file

@ -51,7 +51,8 @@ class ZoneTelechargementBridge extends BridgeAbstract {
// Add every link available in the episode table separated by a <br/> tag
$item['content'] = implode('<br/>', $episode);
$item['title'] = $this->showTitle . 'Episode ' . $epnum;
$this->items[] = $item;
// Insert the episode at the beginning of the item list, to show the newest episode first
array_unshift($this->items, $item);
}
}