*/
public function uninstall() {
// fetch templates from log
- $sql = "SELECT templateName, application
- FROM wcf".WCF_N."_template
- WHERE packageID = ?";
+ $sql = "SELECT template.templateName, template.application,
+ template_group.templateGroupFolderName
+ FROM wcf".WCF_N."_template template
+ LEFT JOIN wcf".WCF_N."_template_group template_group
+ ON (template_group.templateGroupID = template.templateGroupID)
+ WHERE packageID = ?";
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute(array($this->installation->getPackageID()));
$templates[$row['application']] = array();
}
- $templates[$row['application']][] = 'templates/'.$row['templateName'].'.tpl';
+ $templates[$row['application']][] = 'templates/'.$row['templateGroupFolderName'].$row['templateName'].'.tpl';
}
foreach ($templates as $application => $templateNames) {