Fixes for language files3.

This commit is contained in:
tracer 2023-05-29 16:07:40 +02:00
parent 46e90bd798
commit 08a53a737f
1 changed files with 2 additions and 1 deletions

View File

@ -176,7 +176,6 @@ class UpdateController
echo 'Language Deutsch "Du" ist not installed, skipping' . PHP_EOL; echo 'Language Deutsch "Du" ist not installed, skipping' . PHP_EOL;
} }
die();
$useLangDeSie = false; $useLangDeSie = false;
if (file_exists(filename: $phpBBRootPath . 'language/de_x_sie')) { if (file_exists(filename: $phpBBRootPath . 'language/de_x_sie')) {
$useLangDeSie = true; $useLangDeSie = true;
@ -192,6 +191,7 @@ class UpdateController
file_put_contents(filename: $langDeSieTarget, data: $phpBBtbz); file_put_contents(filename: $langDeSieTarget, data: $phpBBtbz);
} else { } else {
echo 'Language file ' . $languageFile . ' does not exist' . PHP_EOL; echo 'Language file ' . $languageFile . ' does not exist' . PHP_EOL;
echo "Error fetching: $filePath";
$useLangDeSie = false; $useLangDeSie = false;
} }
} else { } else {
@ -201,6 +201,7 @@ class UpdateController
echo 'Language Deutsch "Sie" ist not installed, skipping' . PHP_EOL; echo 'Language Deutsch "Sie" ist not installed, skipping' . PHP_EOL;
} }
die;
if (!$this->confirm(message: 'Do you want to proceed with the update now?')) { if (!$this->confirm(message: 'Do you want to proceed with the update now?')) {
exit(0); exit(0);
} }