From 2fd033a8c5834786f320ae5c3164655ff9a922a4 Mon Sep 17 00:00:00 2001 From: tracer Date: Mon, 29 May 2023 19:01:16 +0200 Subject: [PATCH] removed debug stuff --- Controller/UpdateController.php | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/Controller/UpdateController.php b/Controller/UpdateController.php index a4ae0d2..d9c30e9 100644 --- a/Controller/UpdateController.php +++ b/Controller/UpdateController.php @@ -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;