Browse Source

news update simplifié

NewsColumn
Fred Tempez 1 month ago
parent
commit
b0e8be710b
  1. 12
      module/news/news.php

12
module/news/news.php

@ -70,15 +70,11 @@ class news extends common {
if ($this->getData(['module', $this->getUrl(0), 'config', 'version']) === NULL) {
$this->setData(['module', $this->getUrl(0), 'config', 'version','0.0']);
}
// Version 2.4
// Version 3.0
if (version_compare($this->getData(['module', $this->getUrl(0), 'versionData']), self::VERSION, '<') ) {
$this->setData(['module', $this->getUrl(0),'config', [
'itemsperPage' => 16,
'itemsperCol'=> 6,
'feeds' => $this->getData(['module', $this->getUrl(0), 'config','feeds']),
'feedsLabel' => $this->getData(['module', $this->getUrl(0), 'config','feedsLabel']),
'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']);
}
}

Loading…
Cancel
Save