agenda 7.1

This commit is contained in:
deltacms 2024-04-19 17:42:34 +02:00
parent 7062a5a89e
commit 4e900dc219
1 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ class agenda extends common {
'index' => self::GROUP_VISITOR
];
const VERSION = '7.0';
const VERSION = '7.1';
const REALNAME = 'Agenda';
const DELETE = true;
const UPDATE = '4.1';
@ -123,7 +123,7 @@ class agenda extends common {
$this->setData(['module', $this->getUrl(0), 'config', 'versionData','6.0']);
}
// Mise à jour vers la version 7.0
if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'versionData']), '7.0', '<') ) {
if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'versionData']), '7.1', '<') ) {
// Déplacement des fichiers htaccess une seule fois
if(is_file(self::DATAMODULE.'data/.htaccess')){
$listDir = scandir(self::DATAMODULE.'data');
@ -146,7 +146,7 @@ class agenda extends common {
if( is_dir( self::DATAMODULE.'data/'.$page.'_affiche')) $this->custom_copy( self::DATAMODULE.'data/'.$page.'_affiche' , self::DATA_DIR. self::$i18n.'/data_module/agenda/'.$page.'_affiche');
if( is_dir( self::DATAMODULE.'data/'.$page.'_visible')) $this->custom_copy( self::DATAMODULE.'data/'.$page.'_visible' , self::DATA_DIR. self::$i18n.'/data_module/agenda/'.$page.'_visible');
}
$this->setData(['module', $this->getUrl(0), 'config', 'versionData','7.0']);
$this->setData(['module', $this->getUrl(0), 'config', 'versionData','7.1']);
}
}