Addon modification message import impossible

This commit is contained in:
SylvainLelievre 2021-02-21 08:18:29 +01:00
parent 10ef44aaaf
commit 3bc9e52c3d
1 changed files with 4 additions and 2 deletions

View File

@ -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;