Clean dead code

This commit is contained in:
Laurent Destailleur
2020-04-02 12:03:29 +02:00
parent f6b216eafc
commit 84cda962c1
30 changed files with 89 additions and 780 deletions

View File

@@ -3629,14 +3629,10 @@ abstract class CommonObject
if ($trigkey)
{
// Appel des triggers
include_once DOL_DOCUMENT_ROOT.'/core/class/interfaces.class.php';
$interface = new Interfaces($this->db);
$result = $interface->run_triggers($trigkey, $this, $user, $langs, $conf);
if ($result < 0) {
$error++; $this->errors = $interface->errors;
}
// Fin appel triggers
// Call trigger
$result = $this->call_trigger($trigkey, $user);
if ($result < 0) $error++;
// End call triggers
}
if (!$error)