From ab4a70167a1c16a3c6c5fac10dfa2f4b4f754f95 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 4 Sep 2008 10:03:05 +0000 Subject: [PATCH] Bugfix in regexp to fins available triggers .php replaced by .php$ if not ~ files are used --- htdocs/interfaces.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/interfaces.class.php b/htdocs/interfaces.class.php index 2cb91ceebe2..1cee0125c1c 100644 --- a/htdocs/interfaces.class.php +++ b/htdocs/interfaces.class.php @@ -63,7 +63,7 @@ class Interfaces while (($file = readdir($handle))!==false) { - if (is_readable($this->dir."/".$file) && eregi('^interface_([^_]+)_(.+)\.class\.php',$file,$reg)) + if (is_readable($this->dir."/".$file) && eregi('^interface_([^_]+)_(.+)\.class\.php$',$file,$reg)) { $nbfile++; @@ -95,7 +95,7 @@ class Interfaces dolibarr_syslog("Interfaces::run_triggers Triggers for file '".$file."' need module to be enabled",LOG_INFO); continue; } - +dolibarr_syslog("Interfaces::run_triggers Launch triggers for file '".$file."'",LOG_INFO); include_once($this->dir."/".$file); $objMod = new $modName($this->db); if ($objMod)