Fix: $hookmanager is a global object

This commit is contained in:
Regis Houssin
2013-01-26 10:35:30 +01:00
parent 64cac3194c
commit fcee35c65d
39 changed files with 272 additions and 317 deletions

View File

@@ -794,12 +794,11 @@ class Commande extends CommonOrder
* Load an object from its id and create a new one in database
*
* @param int $socid Id of thirdparty
* @param HookManager $hookmanager Hook manager instance
* @return int New id of clone
*/
function createFromClone($socid=0,$hookmanager=false)
function createFromClone($socid=0)
{
global $conf,$user,$langs;
global $conf,$user,$langs,$hookmanager;
$error=0;