From c044694b2173c5823facd59ca28183cc010cfadd Mon Sep 17 00:00:00 2001 From: sysadminstory Date: Fri, 21 Sep 2018 20:22:49 +0200 Subject: [PATCH] [ZoneTelechargementBridge] Sort episodes from newest to oldest (#835) References #834 --- bridges/ZoneTelechargementBridge.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bridges/ZoneTelechargementBridge.php b/bridges/ZoneTelechargementBridge.php index caa32c38..4a53c53a 100644 --- a/bridges/ZoneTelechargementBridge.php +++ b/bridges/ZoneTelechargementBridge.php @@ -51,7 +51,8 @@ class ZoneTelechargementBridge extends BridgeAbstract { // Add every link available in the episode table separated by a
tag $item['content'] = implode('
', $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); } }