Fixing style errors.
This commit is contained in:
parent
9011b03528
commit
ada99b01f9
@ -1794,39 +1794,38 @@ class EmailCollector extends CommonObject
|
|||||||
$tickettocreate->ref = $defaultref;
|
$tickettocreate->ref = $defaultref;
|
||||||
}
|
}
|
||||||
// Create event specific on hook
|
// Create event specific on hook
|
||||||
// this code action is hook..... for support this call
|
// this code action is hook..... for support this call
|
||||||
elseif (substr($operation['type'],0,4) == 'hook'){
|
elseif (substr($operation['type'], 0, 4) == 'hook'){
|
||||||
global $hookmanager;
|
global $hookmanager;
|
||||||
|
|
||||||
if(!is_object($hookmanager))
|
if(!is_object($hookmanager))
|
||||||
$hookmanager->initHooks(array('emailcollectorcard'));
|
$hookmanager->initHooks(array('emailcollectorcard'));
|
||||||
|
|
||||||
$parameters = array(
|
$parameters = array(
|
||||||
'connection'=> $connection,
|
'connection'=> $connection,
|
||||||
'imapemail'=>$imapemail,
|
'imapemail'=>$imapemail,
|
||||||
'overview'=>$overview,
|
'overview'=>$overview,
|
||||||
|
|
||||||
'from' => $from ,
|
'from' => $from ,
|
||||||
'fromtext' => $fromtext,
|
'fromtext' => $fromtext,
|
||||||
|
|
||||||
'actionparam'=> $operation['actionparam'],
|
'actionparam'=> $operation['actionparam'],
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
'thirdpartyid' => $thirdpartyid ,
|
'thirdpartyid' => $thirdpartyid ,
|
||||||
'objectid'=>@$objectid,
|
'objectid'=>@$objectid,
|
||||||
'objectemail'=>@$objectemail,
|
'objectemail'=>@$objectemail,
|
||||||
|
|
||||||
'messagetext'=>$messagetext,
|
'messagetext'=>$messagetext,
|
||||||
'subject'=>$subject,
|
'subject'=>$subject,
|
||||||
'header'=>$header,
|
'header'=>$header,
|
||||||
) ;
|
) ;
|
||||||
$res = $hookmanager->executeHooks('doCollectOneCollector', $parameters, $this, $operation['type']);
|
$res = $hookmanager->executeHooks('doCollectOneCollector', $parameters, $this, $operation['type']);
|
||||||
|
|
||||||
if($res < 0 )
|
|
||||||
$this->error = $hookmanager->resPrint;
|
|
||||||
|
|
||||||
}
|
if($res < 0 )
|
||||||
|
$this->error = $hookmanager->resPrint;
|
||||||
|
}
|
||||||
|
|
||||||
if ($errorforthisaction)
|
if ($errorforthisaction)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user