Fixes for language files6.
This commit is contained in:
parent
2114bcc8b5
commit
21fb878ffb
|
@ -185,12 +185,13 @@ class UpdateController
|
|||
if (!file_exists(filename: $langDeSieTarget)) {
|
||||
echo "Downloading language $languageFile" . PHP_EOL;
|
||||
$filePath = "https://downloads.phpbb.de/pakete/deutsch/$major.$minor/$availableUpdate/$languageFile";
|
||||
if (file_exists(filename: $filePath)) {
|
||||
$phpBBtbz = file_get_contents(filename: $filePath);
|
||||
// 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 "Error fetching: $filePath" .PHP_EOL;
|
||||
$useLangDeSie = false;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue