diff --git a/htdocs/public/project/suggestbooth.php b/htdocs/public/project/suggestbooth.php index 65b15578b7d..77d3873511a 100644 --- a/htdocs/public/project/suggestbooth.php +++ b/htdocs/public/project/suggestbooth.php @@ -115,6 +115,7 @@ $user->loadDefaultValues(); $cactioncomm = new CActionComm($db); $arrayofeventtype = $cactioncomm->liste_array('', 'id', '', 0, 'module=\'booth@eventorganization\''); + /** * Show header for new member * @@ -183,10 +184,10 @@ function llxFooterVierge() /* * Actions */ -global $mysoc; + $parameters = array(); // Note that $action and $object may have been modified by some hooks -$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); +$reshook = $hookmanager->executeHooks('doActions', $parameters, $project, $action); if ($reshook < 0) { setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); } diff --git a/htdocs/public/project/suggestconference.php b/htdocs/public/project/suggestconference.php index 19eb0801c6a..45dbaf80656 100644 --- a/htdocs/public/project/suggestconference.php +++ b/htdocs/public/project/suggestconference.php @@ -115,6 +115,7 @@ $user->loadDefaultValues(); $cactioncomm = new CActionComm($db); $arrayofeventtype = $cactioncomm->liste_array('', 'id', '', 0, 'module=\'conference@eventorganization\''); + /** * Show header for new member * @@ -183,10 +184,10 @@ function llxFooterVierge() /* * Actions */ -global $mysoc; + $parameters = array(); // Note that $action and $object may have been modified by some hooks -$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); +$reshook = $hookmanager->executeHooks('doActions', $parameters, $project, $action); if ($reshook < 0) { setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); } diff --git a/htdocs/public/project/viewandvote.php b/htdocs/public/project/viewandvote.php index 9177e0edc8d..9252a7ac50f 100644 --- a/htdocs/public/project/viewandvote.php +++ b/htdocs/public/project/viewandvote.php @@ -89,9 +89,11 @@ if ($resultproject < 0) { $errmsg .= $project->error; } + /* * Actions */ + $tmpthirdparty = new Societe($db); $listOfConferences = $listOfBooths = ''.$langs->trans('Label').'