From 2800faffa8075fd6ad6f2459e9d69ceaace3a76b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Sat, 11 Oct 2014 18:27:30 +0200 Subject: [PATCH] Fix: File names must be in lowercase. Fix: Missing includes. --- htdocs/core/class/interfaces.class.php | 4 ++-- ...olibarrTriggers.class.php => dolibarrtriggers.class.php} | 0 htdocs/core/triggers/interface_20_all_Logevents.class.php | 2 ++ .../interface_20_modPaypal_PaypalWorkflow.class.php | 2 ++ .../interface_20_modWorkflow_WorkflowManager.class.php | 2 ++ .../triggers/interface_50_modAgenda_ActionsAuto.class.php | 2 ++ .../triggers/interface_50_modLdap_Ldapsynchro.class.php | 6 ++++-- ...interface_50_modMailmanspip_Mailmanspipsynchro.class.php | 5 +++-- .../interface_50_modNotification_Notification.class.php | 1 + htdocs/core/triggers/interface_90_all_Demo.class.php-NORUN | 1 + 10 files changed, 19 insertions(+), 6 deletions(-) rename htdocs/core/triggers/{DolibarrTriggers.class.php => dolibarrtriggers.class.php} (100%) diff --git a/htdocs/core/class/interfaces.class.php b/htdocs/core/class/interfaces.class.php index e441dbe5e96..407893021ef 100644 --- a/htdocs/core/class/interfaces.class.php +++ b/htdocs/core/class/interfaces.class.php @@ -23,12 +23,12 @@ * \brief Fichier de la classe de gestion des triggers */ -require_once DOL_DOCUMENT_ROOT.'/core/triggers/DolibarrTriggers.class.php'; +require_once DOL_DOCUMENT_ROOT.'/core/triggers/dolibarrtriggers.class.php'; + /** * Class to manage triggers */ - class Interfaces { var $dir; // Directory with all core and external triggers files diff --git a/htdocs/core/triggers/DolibarrTriggers.class.php b/htdocs/core/triggers/dolibarrtriggers.class.php similarity index 100% rename from htdocs/core/triggers/DolibarrTriggers.class.php rename to htdocs/core/triggers/dolibarrtriggers.class.php diff --git a/htdocs/core/triggers/interface_20_all_Logevents.class.php b/htdocs/core/triggers/interface_20_all_Logevents.class.php index 1b094790195..b73d01ec612 100644 --- a/htdocs/core/triggers/interface_20_all_Logevents.class.php +++ b/htdocs/core/triggers/interface_20_all_Logevents.class.php @@ -23,6 +23,8 @@ * \brief Trigger file for */ +require_once DOL_DOCUMENT_ROOT.'/core/triggers/dolibarrtriggers.class.php'; + /** * Class of triggers for security events diff --git a/htdocs/core/triggers/interface_20_modPaypal_PaypalWorkflow.class.php b/htdocs/core/triggers/interface_20_modPaypal_PaypalWorkflow.class.php index 13647814bb4..1d57f598d57 100644 --- a/htdocs/core/triggers/interface_20_modPaypal_PaypalWorkflow.class.php +++ b/htdocs/core/triggers/interface_20_modPaypal_PaypalWorkflow.class.php @@ -22,6 +22,8 @@ * \brief Trigger file for paypal workflow */ +require_once DOL_DOCUMENT_ROOT.'/core/triggers/dolibarrtriggers.class.php'; + /** * Class of triggers for paypal module diff --git a/htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php b/htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php index c1e3995afa8..d144f365533 100644 --- a/htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php +++ b/htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php @@ -23,6 +23,8 @@ * \brief Trigger file for workflows */ +require_once DOL_DOCUMENT_ROOT.'/core/triggers/dolibarrtriggers.class.php'; + /** * Class of triggers for workflow module diff --git a/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php b/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php index 5e4e7b5a9fb..e7ccc31583c 100644 --- a/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php +++ b/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php @@ -25,6 +25,8 @@ * \brief Trigger file for agenda module */ +require_once DOL_DOCUMENT_ROOT.'/core/triggers/dolibarrtriggers.class.php'; + /** * Class of triggered functions for agenda module diff --git a/htdocs/core/triggers/interface_50_modLdap_Ldapsynchro.class.php b/htdocs/core/triggers/interface_50_modLdap_Ldapsynchro.class.php index ce3af92d30b..652a1ec8d6b 100644 --- a/htdocs/core/triggers/interface_50_modLdap_Ldapsynchro.class.php +++ b/htdocs/core/triggers/interface_50_modLdap_Ldapsynchro.class.php @@ -21,8 +21,10 @@ * \ingroup core * \brief Fichier de gestion des triggers LDAP */ -require_once (DOL_DOCUMENT_ROOT."/core/class/ldap.class.php"); -require_once (DOL_DOCUMENT_ROOT."/user/class/usergroup.class.php"); + +require_once DOL_DOCUMENT_ROOT.'/core/triggers/dolibarrtriggers.class.php'; +require_once DOL_DOCUMENT_ROOT."/core/class/ldap.class.php"; +require_once DOL_DOCUMENT_ROOT."/user/class/usergroup.class.php"; /** diff --git a/htdocs/core/triggers/interface_50_modMailmanspip_Mailmanspipsynchro.class.php b/htdocs/core/triggers/interface_50_modMailmanspip_Mailmanspipsynchro.class.php index d2c01f5f508..467cf678c07 100644 --- a/htdocs/core/triggers/interface_50_modMailmanspip_Mailmanspipsynchro.class.php +++ b/htdocs/core/triggers/interface_50_modMailmanspip_Mailmanspipsynchro.class.php @@ -21,8 +21,9 @@ * \ingroup core * \brief File to manage triggers Mailman and Spip */ -require_once (DOL_DOCUMENT_ROOT."/mailmanspip/class/mailmanspip.class.php"); -require_once (DOL_DOCUMENT_ROOT."/user/class/usergroup.class.php"); +require_once DOL_DOCUMENT_ROOT.'/core/triggers/dolibarrtriggers.class.php'; +require_once DOL_DOCUMENT_ROOT."/mailmanspip/class/mailmanspip.class.php"; +require_once DOL_DOCUMENT_ROOT."/user/class/usergroup.class.php"; /** diff --git a/htdocs/core/triggers/interface_50_modNotification_Notification.class.php b/htdocs/core/triggers/interface_50_modNotification_Notification.class.php index c26ca4e33ef..368f7bdeeb8 100644 --- a/htdocs/core/triggers/interface_50_modNotification_Notification.class.php +++ b/htdocs/core/triggers/interface_50_modNotification_Notification.class.php @@ -22,6 +22,7 @@ * \ingroup notification * \brief File of class of triggers for notification module */ +require_once DOL_DOCUMENT_ROOT.'/core/triggers/dolibarrtriggers.class.php'; /** diff --git a/htdocs/core/triggers/interface_90_all_Demo.class.php-NORUN b/htdocs/core/triggers/interface_90_all_Demo.class.php-NORUN index 96401c77251..d3abf17501d 100644 --- a/htdocs/core/triggers/interface_90_all_Demo.class.php-NORUN +++ b/htdocs/core/triggers/interface_90_all_Demo.class.php-NORUN @@ -28,6 +28,7 @@ * - Le nom de la classe doit etre InterfaceMytrigger * - Le nom de la propriete name doit etre Mytrigger */ +require_once DOL_DOCUMENT_ROOT.'/core/triggers/dolibarrtriggers.class.php'; /** -- GitLab