forked from Wavyzz/dolibarr
Website tables are created only if module enabled.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user