From: Matthias Schmidt Date: Sun, 17 Jul 2016 10:28:54 +0000 (+0200) Subject: Fix method call when deleting boxes of type `tpl` X-Git-Tag: 3.0.0_Beta_1~1081 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e4767c32f0c03e3aa1d693d12857d764cd4fc023;p=GitHub%2FWoltLab%2FWCF.git Fix method call when deleting boxes of type `tpl` --- 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);