Skip to content

Commit

Permalink
Evarisk#1091 [Core] fix: add set_const to replace global
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-kilyan committed Oct 24, 2024
1 parent 51e57f8 commit b7bb5a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/modules/modSaturne.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,6 @@ public function __construct($db)
'user' => 0,
];
}

$conf->global->MAIN_UMASK = '0664';
}

/**
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit b7bb5a1

Please sign in to comment.