From: Marcel Werk Date: Sat, 1 Jun 2013 13:42:15 +0000 (+0200) Subject: Fixed exception when creating new templates X-Git-Tag: 2.0.0_Beta_3~66^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bd84f715ea5d55dfdaa71a2cdc2ab68ac66ab0b8;p=GitHub%2FWoltLab%2FWCF.git Fixed exception when creating new templates --- diff --git a/wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php b/wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php index 6e18e635e0..10b6abb865 100644 --- a/wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php @@ -183,7 +183,7 @@ class TemplateAddForm extends AbstractForm { parent::save(); if (empty($this->application)) { - $this->application = Package::getAbbreviation(PackageCache::getInstance()->getPackage($this->packageID)); + $this->application = Package::getAbbreviation(PackageCache::getInstance()->getPackage($this->packageID)->package); } $this->objectAction = new TemplateAction(array(), 'create', array('data' => array(