Debug webportal module

This commit is contained in:
Laurent Destailleur
2024-01-27 17:23:03 +01:00
parent f9de28a9e9
commit 25a91c63cf
15 changed files with 186 additions and 160 deletions

View File

@@ -38,8 +38,6 @@ class modOpenSurvey extends DolibarrModules
*/
public function __construct($db)
{
global $langs, $conf;
$this->db = $db;
// Id for module (must be unique).
@@ -181,8 +179,6 @@ class modOpenSurvey extends DolibarrModules
*/
public function init($options = '')
{
global $conf, $langs;
$result = $this->_load_tables('/install/mysql/', 'opensurvey');
if ($result < 0) {
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')