From: Matthias Schmidt Date: Thu, 20 Jun 2019 08:11:14 +0000 (+0200) Subject: Fix creation of new languge xml files X-Git-Tag: 5.2.0_Alpha_1~37 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=28a8bda509b204092e91b23db191543f38999c71;p=GitHub%2FWoltLab%2FWCF.git Fix creation of new languge xml files See #2545 See #2815 --- diff --git a/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php index 94ca904391..328777cfd2 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php @@ -621,6 +621,7 @@ class LanguagePackageInstallationPlugin extends AbstractXMLPackageInstallationPl */ protected function getEmptyXml($languageCode) { $xsdFilename = $this->getXsdFilename(); + $apiVersion = WSC_API_VERSION; $language = LanguageFactory::getInstance()->getLanguageByCode($languageCode); if ($language === null) { @@ -629,7 +630,7 @@ class LanguagePackageInstallationPlugin extends AbstractXMLPackageInstallationPl return << - + XML; }