[10.0.020] Test

This commit is contained in:
Fred 2019-12-23 10:49:57 +01:00 committed by GitHub
parent 7eb5f82c67
commit 679ba8b517
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -481,9 +481,15 @@ class config extends common {
$content = $this->getData(['page',$parentId,'content']); $content = $this->getData(['page',$parentId,'content']);
$replace = str_replace( $old , $new , $content,$count) ; $replace = str_replace( $old , $new , $content,$count) ;
$this->setData(['page',$parentId,'content', $replace ]); $this->setData(['page',$parentId,'content', $replace ]);
if (strpos($old,'?') > 0) {
$replace = str_replace( str_replace('?','',$old) , $new , $content,$count) ;
}
foreach($childIds as $childId) { foreach($childIds as $childId) {
$content = $this->getData(['page',$childId,'content']); $content = $this->getData(['page',$childId,'content']);
$replace = str_replace( $old , $new, $content,$count) ; $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 ]); $this->setData(['page',$childId,'content', $replace ]);
} }
} }