Fix: for add external linked objects

This commit is contained in:
Regis Houssin 2012-03-02 17:51:59 +08:00
parent ebca3ed302
commit e1f97c009b

View File

@ -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;