Supprimer init update version

This commit is contained in:
Fred Tempez 2021-04-01 17:31:18 +02:00
parent 7f4e03f2c6
commit 7389f3026d
4 changed files with 13 additions and 25 deletions

View File

@ -110,10 +110,6 @@ class blog extends common {
* Appelée par les fonctions index et config
*/
private function update() {
// Insitialisation de la version
if ($this->getData(['module', $this->getUrl(0), 'config', 'version']) === NULL) {
$this->setData(['module', $this->getUrl(0), 'config', 'version','4.5']);
}
// Version 5.0
if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'version']), '5.0', '<') ) {
$this->setData(['module', $this->getUrl(0), 'config', 'itemsperPage', 6]);

View File

@ -123,10 +123,6 @@ class download extends common {
* Appelée par les fonctions index et config
*/
private function update() {
// Insitialisation de la version
if ($this->getData(['module', $this->getUrl(0), 'config', 'version']) === NULL) {
$this->setData(['module', $this->getUrl(0), 'config', 'version','0.0']);
}
// Version 5.0
if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'version']), '1.1', '<') ) {
$this->setData(['module', $this->getUrl(0), 'config', 'itemsperPage', 6]);

View File

@ -66,10 +66,6 @@ class news extends common {
* Appelée par les fonctions index et config
*/
private function update() {
// Insitialisation de la version
//if ($this->getData(['module', $this->getUrl(0), 'config', 'version']) === NULL) {
// $this->setData(['module', $this->getUrl(0), 'config', 'version','0.0']);
//}
// Version 3.0
if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'version']), '3.0', '<') ) {
$this->setData(['module', $this->getUrl(0), 'config', 'itemsperPage', 16]);