Missing hook after deprecated trigger

This commit is contained in:
Laurent Destailleur 2018-05-05 13:36:20 +02:00
parent efc00f687a
commit a9c7f90512

View File

@ -48,6 +48,13 @@ $result=$interface->run_triggers('USER_LOGOUT',$user,$user,$langs,$conf);
if ($result < 0) { $error++; }
// Fin appel triggers
// Hooks on logout
$action='';
$hookmanager->initHooks(array('logout'));
$parameters=array();
$reshook=$hookmanager->executeHooks('afterLogout',$parameters,$user,$action); // Note that $action and $object may have been modified by some hooks
if ($reshook < 0) { $error++; }
// Define url to go after disconnect
$urlfrom=empty($_SESSION["urlfrom"])?'':$_SESSION["urlfrom"];