forked from ZwiiCMS-Team/ZwiiCMS
087 conversion URL ok
This commit is contained in:
parent
4bab683c2b
commit
67bdd386e2
@ -494,15 +494,17 @@ class config extends common {
|
||||
// Boucler sur les pages
|
||||
foreach($this->getHierarchy(null,null,null) as $parentId => $childIds) {
|
||||
$content = $this->getData(['page',$parentId,'content']);
|
||||
$replace = str_replace( $old , $new , stripslashes($content),$count) ;
|
||||
if ($count > 0) {
|
||||
$replace = str_replace( 'href="' . $old , 'href="'. $new , stripslashes($content),$c1) ;
|
||||
$replace = str_replace( 'src="' . $old , 'src="'. $new , stripslashes($replace),$c2) ;
|
||||
if ($c1 > 0 || $c2 > 0) {
|
||||
$success = true;
|
||||
$this->setData(['page',$parentId,'content', $replace ]);
|
||||
}
|
||||
foreach($childIds as $childId) {
|
||||
$content = $this->getData(['page',$childId,'content']);
|
||||
$replace = str_replace( $old , $new, stripslashes($content),$count) ;
|
||||
if ($count > 0) {
|
||||
$replace = str_replace( 'href="' . $old , 'href="'. $new , stripslashes($content),$c1) ;
|
||||
$replace = str_replace( 'src="' . $old , 'src="'. $new , stripslashes($replace),$c2) ;
|
||||
if ($c1 > 0 || $c2 > 0) {
|
||||
$success = true;
|
||||
$this->setData(['page',$childId,'content', $replace ]);
|
||||
}
|
||||
@ -514,7 +516,7 @@ class config extends common {
|
||||
// Valeurs en sortie
|
||||
$this->addOutput([
|
||||
'notification' => $success ? 'Conversion effectuée' : 'Aucune conversion',
|
||||
'redirect' => helper::baseUrl() . 'config/restore',
|
||||
'redirect' => helper::baseUrl() . 'config/manage',
|
||||
'state' => $success ? true : false
|
||||
]);
|
||||
}
|
||||
|
0
module/gallery/view/gallery/gallery.css
Normal file → Executable file
0
module/gallery/view/gallery/gallery.css
Normal file → Executable file
0
module/gallery/view/index/index.css
Normal file → Executable file
0
module/gallery/view/index/index.css
Normal file → Executable file
Loading…
Reference in New Issue
Block a user