From: Matthias Schmidt Date: Sun, 10 Feb 2019 15:24:21 +0000 (+0100) Subject: Fix exception order when multiple pages exist X-Git-Tag: 5.2.0_Alpha_1~298 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=345017fc1beac5557249d23b15b52981b4211c73;p=GitHub%2FWoltLab%2FWCF.git Fix exception order when multiple pages exist See #2831 See ba3e3b615f5210c280575ed72c0230529f78ae86 --- diff --git a/wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php b/wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php index 74848a5ca8..2259a1a13c 100644 --- a/wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php @@ -144,6 +144,9 @@ class ExceptionLogViewPage extends MultipleLinkPage { return; } + // show latest exceptions first + $this->exceptions = array_reverse($this->exceptions, true); + if ($this->exceptionID) $this->searchPage($this->exceptionID); $this->calculateNumberOfPages(); @@ -196,9 +199,6 @@ class ExceptionLogViewPage extends MultipleLinkPage { $matches['chain'] = $chainMatches; $this->exceptions[$key] = $matches; } - - // show latest exceptions first - $this->exceptions = array_reverse($this->exceptions, true); } /**