Fixes for language files1.
This commit is contained in:
parent
dabe69967d
commit
c8b88021ed
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue