Code comment

This commit is contained in:
Laurent Destailleur 2016-07-06 11:14:17 +02:00
parent 8e19b235f1
commit c360189d94
2 changed files with 3 additions and 5 deletions

View File

@ -1,5 +1,5 @@
<?php <?php
/* Copyright (C) 2010-2012 Laurent Destailleur <eldy@users.sourceforge.net> /* Copyright (C) 2010-2016 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2010-2014 Regis Houssin <regis.houssin@capnetworks.com> * Copyright (C) 2010-2014 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2010-2011 Juanjo Menent <jmenent@2byte.es> * Copyright (C) 2010-2011 Juanjo Menent <jmenent@2byte.es>
* *
@ -143,6 +143,7 @@ class HookManager
'formObjectOptions', 'formObjectOptions',
'formattachOptions', 'formattachOptions',
'formBuilddocLineOptions', 'formBuilddocLineOptions',
'getIdProfUrl',
'moveUploadedFile', 'moveUploadedFile',
'pdf_build_address', 'pdf_build_address',
'pdf_writelinedesc', 'pdf_writelinedesc',
@ -247,11 +248,7 @@ class HookManager
} }
} }
// TODO remove this. When there is something to print for an output hook, ->resPrint is filled.
//if ($hooktype == 'output') return $this->resPrint;
//if ($hooktype == 'returnvalue') return $result;
return ($error?-1:$resaction); return ($error?-1:$resaction);
} }
} }

View File

@ -2732,6 +2732,7 @@ class Societe extends CommonObject
global $conf,$langs,$hookmanager; global $conf,$langs,$hookmanager;
$url=''; $url='';
$action = '';
$hookmanager->initHooks(array('idprofurl')); $hookmanager->initHooks(array('idprofurl'));
$parameters=array('idprof'=>$idprof, 'company'=>$thirdparty); $parameters=array('idprof'=>$idprof, 'company'=>$thirdparty);