From: Alexander Ebert Date: Sat, 17 Dec 2016 14:25:32 +0000 (+0100) Subject: Fixed i18n system boxes X-Git-Tag: 3.0.0_RC_2~39 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=02b577aeb4e52d8bae45b837a906bbb748ab5b8a;p=GitHub%2FWoltLab%2FWCF.git Fixed i18n system boxes See #2149 --- diff --git a/wcfsetup/install/files/lib/system/package/plugin/BoxPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/BoxPackageInstallationPlugin.class.php index 6939388536..b59b0c6ce3 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/BoxPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/BoxPackageInstallationPlugin.class.php @@ -143,7 +143,6 @@ class BoxPackageInstallationPlugin extends AbstractXMLPackageInstallationPlugin $name = $data['elements']['name']['']; } - $ignoreMissingContent = false; switch ($boxType) { /** @noinspection PhpMissingBreakStatementInspection */ case 'system': @@ -164,7 +163,7 @@ class BoxPackageInstallationPlugin extends AbstractXMLPackageInstallationPlugin throw new SystemException("Unknown object type '{$data['elements']['objectType']}' for 'system'-type box '{$identifier}'"); } - $ignoreMissingContent = true; + $isMultilingual = true; // fallthrough @@ -172,7 +171,7 @@ class BoxPackageInstallationPlugin extends AbstractXMLPackageInstallationPlugin case 'text': case 'tpl': if (empty($data['elements']['content'])) { - if ($ignoreMissingContent) { + if ($boxType === 'system') { break; }