* @category Community Framework
*/
class ACPTemplatesFileHandler extends PackageInstallationFileHandler {
+ /**
+ * template type supports template groups
+ * @var boolean
+ */
+ protected $supportsTemplateGroups = false;
+
/**
* name of the database table where the installed files are logged
* @var string
$conditions->add('packageID <> ?', array($this->packageInstallation->getPackageID()));
$conditions->add('templateName IN (?)', array($files));
$conditions->add('application = ?', array($this->application));
+ if ($this->supportsTemplateGroups) {
+ $conditions->add("templateGroupID IS NULL");
+ }
$sql = "SELECT packageID, templateName
FROM wcf".WCF_N."_".$this->tableName."
* @category Community Framework
*/
class TemplatesFileHandler extends ACPTemplatesFileHandler {
+ /**
+ * @see \wcf\system\package\ACPTemplatesFileHandler::$supportsTemplateGroups
+ */
+ protected $supportsTemplateGroups = true;
+
/**
* @see \wcf\system\package\ACPTemplatesFileHandler::$tableName
*/