From 181ce5222353cabf9bca897a150c0292196a3b72 Mon Sep 17 00:00:00 2001 From: fhenry Date: Sat, 18 May 2013 22:17:46 +0200 Subject: [PATCH] Add ficheinter in GetElementURL for action --- htdocs/core/class/commonobject.class.php | 3 +++ htdocs/fichinter/class/fichinter.class.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 5678936ea5d..232e2dda9fc 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -2517,6 +2517,9 @@ abstract class CommonObject if ($objecttype == 'cabinetmed_cons') { $classpath = 'cabinetmed/class'; $module='cabinetmed'; $subelement='cabinetmedcons'; } + if ($objecttype == 'ficheinter') { + $classpath = 'fichinter/class'; $module='ficheinter'; $subelement='fichinter'; + } //print "objecttype=".$objecttype." module=".$module." subelement=".$subelement; diff --git a/htdocs/fichinter/class/fichinter.class.php b/htdocs/fichinter/class/fichinter.class.php index 13baa5ac389..953198b220b 100644 --- a/htdocs/fichinter/class/fichinter.class.php +++ b/htdocs/fichinter/class/fichinter.class.php @@ -526,7 +526,7 @@ class Fichinter extends CommonObject * @param int $withpicto 0=_No picto, 1=Includes the picto in the linkn, 2=Picto only * @return string String with URL */ - function getNomUrl($withpicto=0) + function getNomUrl($withpicto=0,$option='') { global $langs;