Fix: for add external linked objects
This commit is contained in:
parent
ebca3ed302
commit
e1f97c009b
@ -1647,11 +1647,13 @@ function pdf_getLinkedObjects($object,$outputlangs,$hookmanager=false)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// For add external linked objects
|
||||||
if (is_object($hookmanager))
|
if (is_object($hookmanager))
|
||||||
{
|
{
|
||||||
$parameters = array('linkedobjects' => $linkedobjects, 'outputlangs'=>$outputlangs);
|
$parameters = array('linkedobjects' => $linkedobjects, 'outputlangs'=>$outputlangs);
|
||||||
$action='';
|
$action='';
|
||||||
$hookmanager->executeHooks('pdf_getLinkedObjects',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
|
$hookmanager->executeHooks('pdf_getLinkedObjects',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
|
||||||
|
if (! empty($hookmanager->resArray)) $linkedobjects = $hookmanager->resArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $linkedobjects;
|
return $linkedobjects;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user