From 679ba8b5171852c3b5db94f077fad605cbda280b Mon Sep 17 00:00:00 2001 From: Fred <23246457+fredtempez@users.noreply.github.com> Date: Mon, 23 Dec 2019 10:49:57 +0100 Subject: [PATCH] [10.0.020] Test --- core/module/config/config.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/module/config/config.php b/core/module/config/config.php index f4436cf3..712b1cae 100755 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -481,9 +481,15 @@ class config extends common { $content = $this->getData(['page',$parentId,'content']); $replace = str_replace( $old , $new , $content,$count) ; $this->setData(['page',$parentId,'content', $replace ]); + if (strpos($old,'?') > 0) { + $replace = str_replace( str_replace('?','',$old) , $new , $content,$count) ; + } foreach($childIds as $childId) { $content = $this->getData(['page',$childId,'content']); $replace = str_replace( $old , $new, $content,$count) ; + if (strpos($old,'?') > 0) { + $replace = str_replace( str_replace('?','',$old) , $new , $content,$count) ; + } $this->setData(['page',$childId,'content', $replace ]); } }