From e32b7789e50c6fbc433e6e774e3994df5b7a4efb Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 17 Dec 2022 11:44:25 +0100 Subject: [PATCH] Merge --- htdocs/core/lib/functions.lib.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index c7172a9267f..ca7e346b2bd 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -9386,17 +9386,17 @@ function complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type, continue; } if ($values[3]) { - if ($filterorigmodule) { // If a filter of module origin has been requested - if (strpos($values[3], '@')) { // This is an external module - if ($filterorigmodule != 'external') { - continue; - } - } else { // This looks a core module - if ($filterorigmodule != 'core') { - continue; - } - } - } + if ($filterorigmodule) { // If a filter of module origin has been requested + if (strpos($values[3], '@')) { // This is an external module + if ($filterorigmodule != 'external') { + continue; + } + } else { // This looks a core module + if ($filterorigmodule != 'core') { + continue; + } + } + } $langs->load($values[3]); } if (preg_match('/SUBSTITUTION_([^_]+)/i', $values[2], $reg)) {