From 696c7eb454a558f765507a916960e10e72f22bb4 Mon Sep 17 00:00:00 2001 From: Regis Houssin <regis@dolibarr.fr> Date: Wed, 5 Sep 2012 11:22:52 +0200 Subject: [PATCH] Fix: use require instead include_once --- htdocs/core/lib/files.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/files.lib.php b/htdocs/core/lib/files.lib.php index c230ac6a4bc..a25509e6606 100644 --- a/htdocs/core/lib/files.lib.php +++ b/htdocs/core/lib/files.lib.php @@ -59,7 +59,7 @@ function dol_dir_list($path, $types="all", $recursive=0, $filter="", $excludefil { if (! class_exists('HookManager')) { // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array - include_once DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php'; + require DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php'; $hookmanager=new HookManager($db); } } -- GitLab