From b7bb5a14bc6061c64c1af20ca85409a14f4713cb Mon Sep 17 00:00:00 2001 From: evarisk-kilyan Date: Thu, 24 Oct 2024 17:11:47 +0200 Subject: [PATCH] #1091 [Core] fix: add set_const to replace global --- core/modules/modSaturne.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/modSaturne.class.php b/core/modules/modSaturne.class.php index 4c3d0e5c..0c36d7f4 100644 --- a/core/modules/modSaturne.class.php +++ b/core/modules/modSaturne.class.php @@ -282,8 +282,6 @@ public function __construct($db) 'user' => 0, ]; } - - $conf->global->MAIN_UMASK = '0664'; } /** @@ -328,6 +326,8 @@ public function init($options = ''): int return -1; // Do not activate module if error 'not allowed' returned when loading module SQL queries (the _load_table run sql with run_sql with the error allowed parameter set to 'default') } + dolibarr_set_const($this->db, 'MAIN_UMASK', '0664', 'chaine', 0, 0, 'global', 1); + return $this->_init($sql, $options); }