From e7228fc2138b73571db72cc6ba8582bbd507df44 Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Wed, 6 Aug 2025 12:21:32 +0200 Subject: [PATCH] Complete list of file for unalterable process. --- dev/build/generate_filelist_xml.php | 46 ++++++++++++++++++++++++++ htdocs/core/class/interfaces.class.php | 6 ++-- 2 files changed, 49 insertions(+), 3 deletions(-) diff --git a/dev/build/generate_filelist_xml.php b/dev/build/generate_filelist_xml.php index 8fbc5ff777b..c99dda6d558 100755 --- a/dev/build/generate_filelist_xml.php +++ b/dev/build/generate_filelist_xml.php @@ -339,6 +339,52 @@ if ($needtoclose) { fputs($fp, ' '."\n"); $needtoclose = 0; } +// Add the interfaces.class.php file +$file = dirname(__FILE__).'/../../htdocs/core/class/interfaces.class.php'; +$newdir = str_replace(DOL_DOCUMENT_ROOT, '', dirname($file)); +$newdir = str_replace(dirname(__FILE__).'/../../htdocs', '', dirname($file)); +if ($newdir != $dir) { + if ($needtoclose) { + fputs($fp, ' '."\n"); + $needtoclose = 0; + } + fputs($fp, ' '."\n"); + $dir = $newdir; + $needtoclose = 1; +} +if (filetype($file) == "file") { + $md5 = md5_file($file); + $checksumconcat[] = $md5; + fputs($fp, ' '.$md5.''."\n"); +} +if ($needtoclose) { + fputs($fp, ' '."\n"); + $needtoclose = 0; +} +// Add the interfaces.class.php file +$file = dirname(__FILE__).'/../../htdocs/core/class/commontrigger.class.php'; +$newdir = str_replace(DOL_DOCUMENT_ROOT, '', dirname($file)); +$newdir = str_replace(dirname(__FILE__).'/../../htdocs', '', dirname($file)); +if ($newdir != $dir) { + if ($needtoclose) { + fputs($fp, ' '."\n"); + $needtoclose = 0; + } + fputs($fp, ' '."\n"); + $dir = $newdir; + $needtoclose = 1; +} +if (filetype($file) == "file") { + $md5 = md5_file($file); + $checksumconcat[] = $md5; + fputs($fp, ' '.$md5.''."\n"); +} +if ($needtoclose) { + fputs($fp, ' '."\n"); + $needtoclose = 0; +} + + fputs($fp, ''."\n"); asort($checksumconcat); // Sort list of checksum diff --git a/htdocs/core/class/interfaces.class.php b/htdocs/core/class/interfaces.class.php index f9a5e3ba0d8..2cadd531c12 100644 --- a/htdocs/core/class/interfaces.class.php +++ b/htdocs/core/class/interfaces.class.php @@ -85,16 +85,16 @@ class Interfaces // Check parameters if (!is_object($object) || !is_object($conf)) { // Error - $error = 'function run_triggers called with wrong parameters action='.$action.' object='.((string) (int) is_object($object)).' user='.((string) (int) is_object($user)).' langs='.((string) (int) is_object($langs)).' conf='.((string) (int) is_object($conf)); + $error = 'function run_triggers called with wrong parameters object or conf. action='.$action.' object='.((string) (int) is_object($object)).' user='.((string) (int) is_object($user)).' langs='.((string) (int) is_object($langs)).' conf='.((string) (int) is_object($conf)); dol_syslog(get_class($this).'::run_triggers '.$error, LOG_ERR); $this->errors[] = $error; return -1; } if (!is_object($langs)) { // Warning - dol_syslog(get_class($this).'::run_triggers was called with wrong parameters action='.$action.' object='.((string) (int) is_object($object)).' user='.((string) (int) is_object($user)).' langs='.((string) (int) is_object($langs)).' conf='.((string) (int) is_object($conf)), LOG_WARNING); + dol_syslog(get_class($this).'::run_triggers was called with wrong parameters langs. action='.$action.' object='.((string) (int) is_object($object)).' user='.((string) (int) is_object($user)).' langs='.((string) (int) is_object($langs)).' conf='.((string) (int) is_object($conf)), LOG_WARNING); } if (!is_object($user)) { // Warning - dol_syslog(get_class($this).'::run_triggers was called with wrong parameters action='.$action.' object='.((string) (int) is_object($object)).' user='.((string) (int) is_object($user)).' langs='.((string) (int) is_object($langs)).' conf='.((string) (int) is_object($conf)), LOG_WARNING); + dol_syslog(get_class($this).'::run_triggers was called with wrong parameters user. action='.$action.' object='.((string) (int) is_object($object)).' user='.((string) (int) is_object($user)).' langs='.((string) (int) is_object($langs)).' conf='.((string) (int) is_object($conf)), LOG_WARNING); $user = new User($this->db); }