Fix remove dead code

This commit is contained in:
Laurent Destailleur
2022-02-06 13:06:12 +01:00
parent 3b36465210
commit bd3218b460
16 changed files with 6 additions and 67 deletions

View File

@@ -411,6 +411,7 @@ class modMyModule extends DolibarrModules
{
global $conf, $langs;
//$result = $this->_load_tables('/install/mysql/tables/', 'mymodule');
$result = $this->_load_tables('/mymodule/sql/');
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')