From 5ac2b33a2d92a361a79698c53469056e3455e207 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Thu, 4 Mar 2021 13:30:38 +0100 Subject: [PATCH] constante update --- module/download/download.php | 2 +- module/registration/registration.php | 2 +- module/sondage/sondage.php | 2 +- module/version/version.php | 12 +++++++++--- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/module/download/download.php b/module/download/download.php index f7c97f2a..4c006721 100644 --- a/module/download/download.php +++ b/module/download/download.php @@ -17,7 +17,7 @@ class download extends common { const VERSION = '1.0'; const REALNAME = 'Téléchargement'; const DELETE = true; - const UPDATE = true; + const UPDATE = '0.0'; const DATADIRECTORY = []; // Contenu localisé inclus par défaut (page.json et module.json) const EDIT_OWNER = 'owner'; diff --git a/module/registration/registration.php b/module/registration/registration.php index 560aca34..65d439cf 100644 --- a/module/registration/registration.php +++ b/module/registration/registration.php @@ -17,7 +17,7 @@ class registration extends common { const VERSION = '1.0'; const REALNAME = 'Auto-Inscription'; const DELETE = true; - const UPDATE = true; + const UPDATE = '0.0'; const DATADIRECTORY = []; // Contenu localisé inclus par défaut (page.json et module.json) const STATUS_AWAITING = NULL; // En attente de validation du mail diff --git a/module/sondage/sondage.php b/module/sondage/sondage.php index dcbf6d52..6d41feb0 100644 --- a/module/sondage/sondage.php +++ b/module/sondage/sondage.php @@ -20,7 +20,7 @@ class sondage extends common { const VERSION = '1.0'; const REALNAME = 'Sondage'; const DELETE = true; - const UPDATE = true; + const UPDATE = '0.0'; const DATADIRECTORY = []; // Contenu localisé inclus par défaut (page.json et module.json) public static $actions = [ diff --git a/module/version/version.php b/module/version/version.php index 88c0b223..d851a457 100644 --- a/module/version/version.php +++ b/module/version/version.php @@ -7,24 +7,30 @@ * file that was distributed with this source code. * * @license GNU General Public License, version 3 - * @author : Frédéric Tempez * + * @author : Frédéric Tempez * * @copyright Copyright (C) 2018-2020, Frédéric Tempez * @link http://zwiicms.com/ */ class version extends common { + const VERSION = '1.0'; + const REALNAME = 'Version'; + const DELETE = true; + const UPDATE = '0.0'; + const DATADIRECTORY = []; // Contenu localisé inclus par défaut (page.json et module.json) + public static $actions = [ 'index'=> self::GROUP_VISITOR ]; - + /** * Retourne le numéro de version */ public function index() { exit( common::ZWII_VERSION); - } + } }