2
0
forked from Wavyzz/dolibarr

Website tables are created only if module enabled.

This commit is contained in:
Laurent Destailleur
2022-02-22 19:15:37 +01:00
parent 8cc0f3bb58
commit c63e2c2981
7 changed files with 5 additions and 0 deletions

View File

@@ -164,6 +164,11 @@ class modWebsite extends DolibarrModules
{
global $conf, $langs;
$result = $this->_load_tables('/install/mysql/tables/', 'website');
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')
}
// Remove permissions and default values
$this->remove($options);