fixed missing consideration of the box name in menu pip
authorMarcel Werk <burntime@woltlab.com>
Fri, 10 Jan 2020 17:00:35 +0000 (18:00 +0100)
committerMarcel Werk <burntime@woltlab.com>
Fri, 10 Jan 2020 17:00:35 +0000 (18:00 +0100)
wcfsetup/install/files/lib/system/package/plugin/MenuPackageInstallationPlugin.class.php

index fed23cc0fbdd6c6cc424f82e66042fecc35c3ed8..88256adde6b49ac0217ecd30fa67cf21080e7d29 100644 (file)
@@ -156,7 +156,7 @@ class MenuPackageInstallationPlugin extends AbstractXMLPackageInstallationPlugin
                        
                        $this->boxData[$identifier] = [
                                'identifier' => $identifier,
-                               'name' => $this->getI18nValues($data['elements']['title'], true),
+                               'name' => $this->getI18nValues(!empty($data['elements']['box']['name']) ? $data['elements']['box']['name'] : $data['elements']['title'], true),
                                'boxType' => 'menu',
                                'position' => $position,
                                'showHeader' => !empty($data['elements']['box']['showHeader']) ? 1 : 0,