From 65c1220d75065b1a55e7ac24921b0a7f54dcd6bb Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sat, 9 May 2020 12:52:29 +0200 Subject: [PATCH] =?UTF-8?q?090=20source=20comment=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/config/config.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/core/module/config/config.php b/core/module/config/config.php index a9d3939a..619efce3 100755 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -533,6 +533,14 @@ class config extends common { ]); } + /** + * Fonction de parcours des données de module + * @param string $find donnée à rechercher + * @param string $replace donnée à remplacer + * @param array tableau à analyser + * @param int count nombres d'occurences + * @return array avec les valeurs remplacées. + */ private function recursive_array_replace ($find, $replace, $array, &$count) { if (!is_array($array)) { return str_replace($find, $replace, $array, $count); @@ -542,11 +550,8 @@ class config extends common { foreach ($array as $key => $value) { $newArray[$key] = $this->recursive_array_replace($find, $replace, $value,$c); $count += $c; - if ($key== 'url') { - echo 'key'; - } } return $newArray; } -} \ No newline at end of file +}