Fixes for language files1.

This commit is contained in:
tracer 2023-05-29 15:50:59 +02:00
parent dabe69967d
commit c8b88021ed
1 changed files with 3 additions and 0 deletions

View File

@ -159,6 +159,8 @@ class UpdateController
if (!file_exists(filename: $langDeDuTarget)) {
echo " Downloading $languageFile" . PHP_EOL;
$filePath = "https://downloads.phpbb.de/pakete/deutsch/$major.$minor/$availableUpdate/$languageFile";
echo "File path: $filePath";
die();
if (file_exists(filename: $filePath)) {
$phpBBtbz = file_get_contents(filename: $filePath);
file_put_contents(filename: $langDeDuTarget, data: $phpBBtbz);
@ -177,6 +179,7 @@ class UpdateController
if (file_exists(filename: $phpBBRootPath . 'language/de_x_sie')) {
$useLangDeSie = true;
$languageFile = "phpBB_lang_de_x_sie-$availableUpdate.tar.bz2";
echo "Language file: $languageFile.";
$langDeSieTarget = "dist/$languageFile";
if (!file_exists(filename: $langDeSieTarget)) {