update comparaison

This commit is contained in:
Fred Tempez 2021-04-01 16:25:00 +02:00
parent ba5cdb3deb
commit 90d0fc2127
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class news extends common {
$this->setData(['module', $this->getUrl(0), 'config', 'version','0.0']);
}
// Version 3.0
if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'version']), self::VERSION, '<') ) {
if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'version']), '3.0', '<') ) {
$this->setData(['module', $this->getUrl(0), 'config', 'itemsperPage', 16]);
$this->setData(['module', $this->getUrl(0), 'config', 'itemsperCol', 6]);
$this->setData(['module', $this->getUrl(0), 'config', 'version','3.0']);