Fix wrong path

This commit is contained in:
Jay Trees 2022-01-21 14:40:37 +01:00
parent fb6aa8ce23
commit bb248de083

View file

@ -106,10 +106,10 @@ if ($zip->open($zip_filename)) {
continue;
}
$filepath = __DIR__ . '/' . $filename;
echo $filepath . '<br>';
$filepath = $directory_wishthis_github . '/' . $filename;
if (is_file($filepath)) {
echo 'Rename ' . $filepath . ' to ' . __DIR__ . '/' . $filename . '<br>';
rename($filepath, __DIR__ . '/' . $filename);
}
}