[10.0.020] Test
This commit is contained in:
parent
7eb5f82c67
commit
679ba8b517
@ -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 ]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user