From e4767c32f0c03e3aa1d693d12857d764cd4fc023 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 17 Jul 2016 12:28:54 +0200 Subject: [PATCH] Fix method call when deleting boxes of type `tpl` --- wcfsetup/install/files/lib/data/box/BoxAction.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/box/BoxAction.class.php b/wcfsetup/install/files/lib/data/box/BoxAction.class.php index 3c6f7f9af9..88f3ba46c2 100644 --- a/wcfsetup/install/files/lib/data/box/BoxAction.class.php +++ b/wcfsetup/install/files/lib/data/box/BoxAction.class.php @@ -218,7 +218,7 @@ class BoxAction extends AbstractDatabaseObjectAction { public function delete() { foreach ($this->getObjects() as $box) { if ($box->boxType == 'tpl') { - foreach ($box->getBoxContent() as $languageID => $content) { + foreach ($box->getBoxContents() as $languageID => $content) { $file = WCF_DIR . 'templates/' . $box->getTplName(($languageID ?: null)) . '.tpl'; if (file_exists($file)) { @unlink($file); -- 2.20.1