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,17 +151,13 @@ class UpdateController
$useLangDeDu = false; $useLangDeDu = false;
if (file_exists(filename: $phpBBRootPath . 'language/de')) { if (file_exists(filename: $phpBBRootPath . 'language/de')) {
$useLangDeDu = true; $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"; $languageFile = "phpBB_lang_de-$availableUpdate.tar.bz2";
echo "Language file: $languageFile.";
$langDeDuTarget = "dist/$languageFile"; $langDeDuTarget = "dist/$languageFile";
if (!file_exists(filename: $langDeDuTarget)) { if (!file_exists(filename: $langDeDuTarget)) {
echo " Downloading $languageFile" . PHP_EOL; echo " Downloading $languageFile" . PHP_EOL;
$filePath = "https://downloads.phpbb.de/pakete/deutsch/$major.$minor/$availableUpdate/$languageFile"; $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)) { if ($phpBBtbz = file_get_contents(filename: $filePath)) {
file_put_contents(filename: $langDeDuTarget, data: $phpBBtbz); file_put_contents(filename: $langDeDuTarget, data: $phpBBtbz);
} else { } else {
@ -179,14 +175,11 @@ class UpdateController
if (file_exists(filename: $phpBBRootPath . 'language/de_x_sie')) { if (file_exists(filename: $phpBBRootPath . 'language/de_x_sie')) {
$useLangDeSie = true; $useLangDeSie = true;
$languageFile = "phpBB_lang_de_x_sie-$availableUpdate.tar.bz2"; $languageFile = "phpBB_lang_de_x_sie-$availableUpdate.tar.bz2";
echo "Language file: $languageFile.";
$langDeSieTarget = "dist/$languageFile"; $langDeSieTarget = "dist/$languageFile";
if (!file_exists(filename: $langDeSieTarget)) { if (!file_exists(filename: $langDeSieTarget)) {
echo " Downloading language $languageFile" . PHP_EOL; echo " Downloading language $languageFile" . PHP_EOL;
$filePath = "https://downloads.phpbb.de/pakete/deutsch/$major.$minor/$availableUpdate/$languageFile"; $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)) { if ($phpBBtbz = file_get_contents(filename: $filePath)) {
file_put_contents(filename: $langDeSieTarget, data: $phpBBtbz); file_put_contents(filename: $langDeSieTarget, data: $phpBBtbz);