v8.4.6 : type itemsperpage int

This commit is contained in:
fredtempez 2018-11-19 18:06:03 +01:00
parent 6269a07540
commit 18e32f07f9
2 changed files with 8 additions and 1 deletions

View File

@ -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();
}
}

View File

@ -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 === []) {