forked from ZwiiCMS-Team/ZwiiCMS
Addon modification message import impossible
This commit is contained in:
parent
10ef44aaaf
commit
3bc9e52c3d
@ -390,7 +390,9 @@ class addon extends common {
|
|||||||
if( $fileTarget === 'page' ){
|
if( $fileTarget === 'page' ){
|
||||||
foreach( $dataSource as $keydataSource=>$valuedataSource ){
|
foreach( $dataSource as $keydataSource=>$valuedataSource ){
|
||||||
foreach( $this->getData(['page']) as $keypage=>$valuepage ){
|
foreach( $this->getData(['page']) as $keypage=>$valuepage ){
|
||||||
if( $keydataSource === $keypage) $list .= ' '.$this->getData(['page', $keypage, 'title']);
|
if( $keydataSource === $keypage){
|
||||||
|
$list === '' ? $list .= ' '.$this->getData(['page', $keypage, 'title']) : $list .= ', '.$this->getData(['page', $keypage, 'title']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -413,7 +415,7 @@ class addon extends common {
|
|||||||
$zip->close();
|
$zip->close();
|
||||||
if( $list !== '' ){
|
if( $list !== '' ){
|
||||||
$success = false;
|
$success = false;
|
||||||
$notification = 'Import impossible les pages suivantes doivent être renommées :'.$list;
|
strpos( $list, ',') === false ? $notification = 'Import impossible la page suivante doit être renommée :'.$list : $notification = 'Import impossible les pages suivantes doivent être renommées :'.$list;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$success = true;
|
$success = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user