From: Alexander Ebert Date: Thu, 1 Jun 2017 10:36:51 +0000 (+0200) Subject: Fixed box editor PIP X-Git-Tag: 3.0.6~39^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a4b7eb408a18876d098a24bf412234dd4e25c5ed;p=GitHub%2FWoltLab%2FWCF.git Fixed box editor PIP Closes #2280 --- 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 6a43c9f2b9..dc2aaeb64c 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/BoxPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/BoxPackageInstallationPlugin.class.php @@ -24,7 +24,7 @@ class BoxPackageInstallationPlugin extends AbstractXMLPackageInstallationPlugin /** * list of created or updated boxes by id - * @var Box[] + * @var BoxEditor[] */ protected $boxes = []; @@ -291,7 +291,7 @@ class BoxPackageInstallationPlugin extends AbstractXMLPackageInstallationPlugin // store content for later import $this->content[$box->boxID] = $content; - $this->boxes[$box->boxID] = $box; + $this->boxes[$box->boxID] = ($box instanceof Box) ? new BoxEditor($box) : $box; return $box; } @@ -314,7 +314,7 @@ class BoxPackageInstallationPlugin extends AbstractXMLPackageInstallationPlugin WCF::getDB()->beginTransaction(); foreach ($this->content as $boxID => $contentData) { - $boxEditor = new BoxEditor($this->boxes[$boxID]); + $boxEditor = $this->boxes[$boxID]; foreach ($contentData as $languageCode => $content) { $languageID = null;