removed debug stuff

This commit is contained in:
tracer 2023-05-29 19:01:16 +02:00
parent a1b030e463
commit 2fd033a8c5
1 changed files with 5 additions and 12 deletions

View File

@ -151,25 +151,21 @@ class UpdateController
$useLangDeDu = false;
if (file_exists(filename: $phpBBRootPath . 'language/de')) {
$useLangDeDu = true;
// https://downloads.phpbb.de/pakete/deutsch/3.3/3.3.10/phpBB_lang_de-3.3.10.tar.bz2
$languageFile = "phpBB_lang_de-$availableUpdate.tar.bz2";
echo "Language file: $languageFile.";
$langDeDuTarget = "dist/$languageFile";
if (!file_exists(filename: $langDeDuTarget)) {
echo " Downloading $languageFile" . PHP_EOL;
$filePath = "https://downloads.phpbb.de/pakete/deutsch/$major.$minor/$availableUpdate/$languageFile";
// 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";
if ($phpBBtbz = file_get_contents(filename: $filePath)) {
file_put_contents(filename: $langDeDuTarget, data: $phpBBtbz);
} else {
echo "Language file $languageFile does not exist." . PHP_EOL;
echo " Language file $languageFile does not exist." . PHP_EOL;
$useLangDeDu = false;
}
} else {
echo 'Language file ' . $languageFile . ' already exists' . PHP_EOL;
echo ' Language file ' . $languageFile . ' already exists' . PHP_EOL;
}
} else {
echo 'Language Deutsch "Du" ist not installed, skipping' . PHP_EOL;
@ -179,23 +175,20 @@ 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)) {
echo " Downloading language $languageFile" . PHP_EOL;
$filePath = "https://downloads.phpbb.de/pakete/deutsch/$major.$minor/$availableUpdate/$languageFile";
// https://downloads.phpbb.de/pakete/deutsch/3.3/3.3.10/phpBB_lang_de_x_sie-3.3.10.tar.bz2
// https://downloads.phpbb.de/pakete/deutsch/3.3/3.3.10/phpBB_lang_de_x_sie-3.3.10.tar.bz2
if ($phpBBtbz = file_get_contents(filename: $filePath)) {
file_put_contents(filename: $langDeSieTarget, data: $phpBBtbz);
} else {
echo 'Language file ' . $languageFile . ' does not exist' . PHP_EOL;
echo ' Language file ' . $languageFile . ' does not exist' . PHP_EOL;
$useLangDeSie = false;
}
} else {
echo 'Language file ' . $languageFile . ' already exists' . PHP_EOL;
echo ' Language file ' . $languageFile . ' already exists' . PHP_EOL;
}
} else {
echo 'Language Deutsch "Sie" ist not installed, skipping' . PHP_EOL;