From a4b7eb408a18876d098a24bf412234dd4e25c5ed Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 1 Jun 2017 12:36:51 +0200 Subject: [PATCH] Fixed box editor PIP Closes #2280 --- .../package/plugin/BoxPackageInstallationPlugin.class.php | 6 +++--- 1 file changed, 3 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 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; -- 2.20.1