Fixes for language files4.

This commit is contained in:
tracer 2023-05-29 16:12:03 +02:00
parent 08a53a737f
commit 7d88fc5066
1 changed files with 2 additions and 3 deletions

View File

@ -162,8 +162,7 @@ class UpdateController
// https://downloads.phpbb.de/pakete/deutsch/3.3/3.3.10/phpBB_lang_de-3.3.10.tar.bz2 // https://downloads.phpbb.de/pakete/deutsch/3.3/3.3.10/phpBB_lang_de-3.3.10.tar.bz2
// https://downloads.phpbb.de/pakete/deutsch/3.3/3.3.10/phpBB_lang_de-3.3.10.tar.bz2 // https://downloads.phpbb.de/pakete/deutsch/3.3/3.3.10/phpBB_lang_de-3.3.10.tar.bz2
echo "File path: $filePath"; echo "File path: $filePath";
if (file_exists(filename: $filePath)) { if ($phpBBtbz = file_get_contents(filename: $filePath)) {
$phpBBtbz = file_get_contents(filename: $filePath);
file_put_contents(filename: $langDeDuTarget, data: $phpBBtbz); file_put_contents(filename: $langDeDuTarget, data: $phpBBtbz);
} else { } else {
echo "Language file $languageFile does not exist." . PHP_EOL; echo "Language file $languageFile does not exist." . PHP_EOL;
@ -191,7 +190,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"; echo "Error fetching: $filePath" .PHP_EOL;
$useLangDeSie = false; $useLangDeSie = false;
} }
} else { } else {