From 273b61fc4c616039219c947af96b20f17087fc89 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 21 Aug 2011 18:34:49 +0000 Subject: [PATCH] Removed exceptions --- htdocs/core/class/hookmanager.class.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/htdocs/core/class/hookmanager.class.php b/htdocs/core/class/hookmanager.class.php index 50bcd0cb39a..90333cbe05b 100755 --- a/htdocs/core/class/hookmanager.class.php +++ b/htdocs/core/class/hookmanager.class.php @@ -21,7 +21,7 @@ * \file htdocs/core/class/hookmanager.class.php * \ingroup core * \brief File of class to manage hooks - * \version $Id: hookmanager.class.php,v 1.9 2011/08/20 17:00:34 eldy Exp $ + * \version $Id: hookmanager.class.php,v 1.10 2011/08/21 18:34:49 eldy Exp $ */ @@ -78,9 +78,7 @@ class HookManager { if (in_array($type,$hooks)) { - $path = $module; - if ($module == 'adherent') $path = 'adherents'; - $path = '/'.$path.'/class/'; + $path = '/'.$module.'/class/'; $actionfile = 'actions_'.$module.'.class.php'; $pathroot = '';