From 02b577aeb4e52d8bae45b837a906bbb748ab5b8a Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 17 Dec 2016 15:25:32 +0100 Subject: [PATCH] Fixed i18n system boxes See #2149 --- .../package/plugin/BoxPackageInstallationPlugin.class.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; } -- 2.20.1