Fixed exception when creating new templates
authorMarcel Werk <burntime@woltlab.com>
Sat, 1 Jun 2013 13:42:15 +0000 (15:42 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sat, 1 Jun 2013 13:42:15 +0000 (15:42 +0200)
wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php

index 6e18e635e0d71d08bf70f3e4722a7d0dee83f27f..10b6abb865e90167e4d0b93f5e73a4c0f80798b2 100644 (file)
@@ -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(