From 61946446b2401d01bc2cbd9cbc0342a458d5f08b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 4 Jun 2018 13:36:38 +0200 Subject: [PATCH] Update fichinter.class.php --- htdocs/fichinter/class/fichinter.class.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/htdocs/fichinter/class/fichinter.class.php b/htdocs/fichinter/class/fichinter.class.php index ab6f1640f6f..d72c9173e64 100644 --- a/htdocs/fichinter/class/fichinter.class.php +++ b/htdocs/fichinter/class/fichinter.class.php @@ -668,7 +668,7 @@ class Fichinter extends CommonObject */ function getNomUrl($withpicto=0, $option='', $notooltip=0, $save_lastsearch_value=-1) { - global $conf, $langs; + global $conf, $langs, $hookmanager; $result=''; @@ -697,10 +697,6 @@ class Fichinter extends CommonObject $linkclose.= ' title="'.dol_escape_htmltag($label, 1).'"'; $linkclose.=' class="classfortooltip"'; - if (! is_object($hookmanager)) { - include_once DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php'; - $hookmanager=new HookManager($this->db); - } $hookmanager->initHooks(array('fichinterdao')); $parameters=array('id'=>$this->id); $reshook=$hookmanager->executeHooks('getnomurltooltip',$parameters,$this,$action); // Note that $action and $object may have been modified by some hooks