From b9b6df3e54ebf7d4bc0ae3046e03622a54bacfce Mon Sep 17 00:00:00 2001 From: Deltacms Date: Tue, 29 Aug 2023 08:34:23 +0200 Subject: [PATCH] init et update des modules --- core/module/install/ressource/database_en/base/module.json | 2 +- core/module/install/ressource/database_es/base/module.json | 2 +- core/module/install/ressource/database_fr/base/module.json | 2 +- module/statislite/statislite.php | 6 +++++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/core/module/install/ressource/database_en/base/module.json b/core/module/install/ressource/database_en/base/module.json index 547c616..07ba43b 100644 --- a/core/module/install/ressource/database_en/base/module.json +++ b/core/module/install/ressource/database_en/base/module.json @@ -5,7 +5,7 @@ "feeds": true, "feedsLabel": "Syndication RSS", "itemsperPage": 6, - "versionData": "6.7" + "versionData": "6.8" }, "texts": { "NoComment": "No comment yet", diff --git a/core/module/install/ressource/database_es/base/module.json b/core/module/install/ressource/database_es/base/module.json index 082849e..2fd39a5 100644 --- a/core/module/install/ressource/database_es/base/module.json +++ b/core/module/install/ressource/database_es/base/module.json @@ -5,7 +5,7 @@ "feeds": true, "feedsLabel": "Sindicación RSS", "itemsperPage": 6, - "versionData": "6.7" + "versionData": "6.8" }, "texts": { "NoComment": "Aún no hay comentarios", diff --git a/core/module/install/ressource/database_fr/base/module.json b/core/module/install/ressource/database_fr/base/module.json index b0e10de..fa6b667 100644 --- a/core/module/install/ressource/database_fr/base/module.json +++ b/core/module/install/ressource/database_fr/base/module.json @@ -5,7 +5,7 @@ "feeds": true, "feedsLabel": "Syndication RSS", "itemsperPage": 4, - "versionData": "6.7" + "versionData": "6.8" }, "texts": { "NoComment": "Pas encore de commentaire", diff --git a/module/statislite/statislite.php b/module/statislite/statislite.php index 9f85f34..e84c248 100644 --- a/module/statislite/statislite.php +++ b/module/statislite/statislite.php @@ -96,7 +96,11 @@ class statislite extends common { if( !is_dir( self::DATAMODULE.'/download_counter' ))mkdir( self::DATAMODULE.'/download_counter', 0755); copy('./module/statislite/ressource/download_counter/download_counter.php', self::DATAMODULE.'/download_counter/download_counter.php'); $this->setData(['module', $this->getUrl(0), 'config', 'versionData','4.7']); - } + } + // Version 4.8 + if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'versionData']), '4.8', '<') ) { + $this->setData(['module', $this->getUrl(0), 'config', 'versionData','4.8']); + } } /**