$this->deleteCompiledFiles();
}
+ /**
+ * @see wcf\data\IEditableObject::deleteAll()
+ */
+ public static function deleteAll(array $objectIDs = array()) {
+ $list = new TemplateList();
+ $list->setObjectIDs($objectIDs);
+ $list->readObjects();
+ foreach ($list as $template) {
+ $editor = new TemplateEditor($template);
+ $editor->deleteFile();
+ }
+
+ return parent::deleteAll($objectIDs);
+ }
+
/**
* Deletes the compiled files of this template.
*/
public function __construct() {
parent::__construct();
- $this->sqlSelects = 'package.package, package.packageDir';
+ $this->sqlSelects = 'package.package, package.packageDir, template_group.templateGroupFolderName';
$this->sqlJoins = " LEFT JOIN wcf".WCF_N."_package package ON (package.packageID = template.packageID)";
+ $this->sqlJoins .= " LEFT JOIN wcf".WCF_N."_template_group template_group ON (template_group.templateGroupID = template.templateGroupID)";
}
}