Fixed i18n system boxes
authorAlexander Ebert <ebert@woltlab.com>
Sat, 17 Dec 2016 14:25:32 +0000 (15:25 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 17 Dec 2016 14:25:32 +0000 (15:25 +0100)
See #2149

wcfsetup/install/files/lib/system/package/plugin/BoxPackageInstallationPlugin.class.php

index 693938853604738e3134cb0de7b4fc028809920e..b59b0c6ce34211489d9a45b9edd5f5e4dc33fad1 100644 (file)
@@ -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;
                                        }