From d1fe87651dddc4e162f7a87105419722086e867e Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Fri, 22 Jan 2016 19:34:19 +0100 Subject: [PATCH] Add items in reverse order (add to front) for correct ordering --- bridges/MangareaderBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/MangareaderBridge.php b/bridges/MangareaderBridge.php index 5ad9498..daa640b 100644 --- a/bridges/MangareaderBridge.php +++ b/bridges/MangareaderBridge.php @@ -313,7 +313,7 @@ class MangareaderBridge extends BridgeAbstract{ $item->description = htmlspecialchars(substr($xpath->query("td[1]", $chapter)->item(0)->nodeValue, strrpos($item->title, ": ") + 2)); $item->date = $xpath->query("td[2]", $chapter)->item(0)->nodeValue; $item->content = $item->description . "
"; - $this->items[] = $item; + array_unshift($this->items, $item); } }