fix(yeswiki-move): path error
Some checks are pending
/ test (push) Waiting to run

This commit is contained in:
Florian Schmitt 2024-12-05 23:34:39 +03:00
parent 86e9625246
commit 2336c2a00e

View file

@ -60,7 +60,7 @@ if (!domainIsOnServer($fromDomainWithoutWww)) {
$climate->error('ERROR : Domain '.$fromUrl['host'].' was not found on the server.'."\n"); $climate->error('ERROR : Domain '.$fromUrl['host'].' was not found on the server.'."\n");
exit; exit;
} }
if (!wikiIsOnServer($fromDomainWithoutWww.$fromUrl['path'])) { if (!wikiIsOnServer($fromDomainWithoutWww.($fromUrl['path'] ?? ''))) {
$climate->error('ERROR : no Yeswiki found '.$fromDomainWithoutWww.$fromUrl['path'].' on the server.'."\n"); $climate->error('ERROR : no Yeswiki found '.$fromDomainWithoutWww.$fromUrl['path'].' on the server.'."\n");
exit; exit;
} }
@ -76,7 +76,7 @@ if (!domainIsOnServer($toDomainWithoutWww)) {
$climate->error('ERROR : Domain '.$toUrl['host'].' was not found on the server.'."\n"); $climate->error('ERROR : Domain '.$toUrl['host'].' was not found on the server.'."\n");
exit; exit;
} }
if (!wikiIsOnServer($toDomainWithoutWww.$toUrl['path'])) { if (!wikiIsOnServer($toDomainWithoutWww.($toUrl['path'] ?? ''))) {
$climate->error('ERROR : no Yeswiki found '.$toDomainWithoutWww.$toUrl['path'].' on the server.'."\n"); $climate->error('ERROR : no Yeswiki found '.$toDomainWithoutWww.$toUrl['path'].' on the server.'."\n");
exit; exit;
} }