From 18e32f07f91dcbbd76f9c4a986347b64f45fdb2d Mon Sep 17 00:00:00 2001 From: fredtempez Date: Mon, 19 Nov 2018 18:06:03 +0100 Subject: [PATCH] v8.4.6 : type itemsperpage int --- core/core.php | 7 +++++++ core/module/config/config.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/core/core.php b/core/core.php index d6e6e286..b16a91a1 100644 --- a/core/core.php +++ b/core/core.php @@ -917,6 +917,13 @@ class common { $this->setData(['theme','footer','copyrightPosition','center']); $this->setData(['core', 'dataVersion', 844]); $this->SaveData(); + } + + // Version 8.4.6 + if($this->getData(['core', 'dataVersion']) < 846) { + $this->setData(['config','ItemsperPage',10]); + $this->setData(['core', 'dataVersion', 846]); + $this->SaveData(); } } diff --git a/core/module/config/config.php b/core/module/config/config.php index bc7ced0b..be1f4963 100755 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -222,7 +222,7 @@ class config extends common { ], 'timezone' => $this->getInput('configTimezone', helper::FILTER_STRING_SHORT, true), 'title' => $this->getInput('configTitle', helper::FILTER_STRING_SHORT, true), - 'ItemsperPage' => $this->getInput('ItemsperPage') + 'ItemsperPage' => $this->getInput('ItemsperPage', helper::FILTER_INT,true) ] ]); if(self::$inputNotices === []) {