parent::save();
if (empty($this->application)) {
- $this->application = Package::getAbbreviation(PackageCache::getInstance()->getPackage($this->package));
+ $this->application = Package::getAbbreviation(PackageCache::getInstance()->getPackage($this->packageID));
}
$this->objectAction = new TemplateAction(array(), 'create', array('data' => array(
$statement->execute(array(
$package,
1
- ));
+ ));
while ($row = $statement->fetchArray()) {
// get template path
$templatesDir = FileUtil::addTrailingSlash(FileUtil::getRealPath(WCF_DIR.$row['packageDir']).'templates/'.$templateGroupFolderName);
$templatesTar->extract($template['index'], $templatesDir.$template['filename']);
TemplateEditor::create(array(
+ 'application' => Package::getAbbreviation($package),
'packageID' => $row['packageID'],
'templateName' => StringUtil::replace('.tpl', '', $template['filename']),
'templateGroupID' => $styleData['templateGroupID']