From: Matthias Schmidt Date: Tue, 8 Jun 2021 11:47:54 +0000 (+0200) Subject: Add `AcpTemplateDeletePackageInstallationPlugin` X-Git-Tag: 5.5.0_Alpha_1~682^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b202d52eed23df8b6d7a14c18c8066090227fdb5;p=GitHub%2FWoltLab%2FWCF.git Add `AcpTemplateDeletePackageInstallationPlugin` --- diff --git a/XSD/acpTemplateDelete.xsd b/XSD/acpTemplateDelete.xsd new file mode 100644 index 0000000000..54c6c825d0 --- /dev/null +++ b/XSD/acpTemplateDelete.xsd @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/com.woltlab.wcf/packageInstallationPlugin.xml b/com.woltlab.wcf/packageInstallationPlugin.xml index c64fb38ee6..9274500c83 100644 --- a/com.woltlab.wcf/packageInstallationPlugin.xml +++ b/com.woltlab.wcf/packageInstallationPlugin.xml @@ -33,5 +33,6 @@ wcf\system\package\plugin\MediaProviderPackageInstallationPlugin wcf\system\package\plugin\DatabasePackageInstallationPlugin wcf\system\package\plugin\FileDeletePackageInstallationPlugin + wcf\system\package\plugin\AcpTemplateDeletePackageInstallationPlugin diff --git a/wcfsetup/install/files/lib/system/package/plugin/AcpTemplateDeletePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/AcpTemplateDeletePackageInstallationPlugin.class.php new file mode 100644 index 0000000000..48dda410ae --- /dev/null +++ b/wcfsetup/install/files/lib/system/package/plugin/AcpTemplateDeletePackageInstallationPlugin.class.php @@ -0,0 +1,37 @@ + + * @package WoltLabSuite\Core\System\Package\Plugin + * @since 5.5 + */ +final class AcpTemplateDeletePackageInstallationPlugin extends AbstractTemplateDeletePackageInstallationPlugin +{ + /** + * @inheritDoc + */ + protected function getLogTableName(): string + { + return 'wcf1_acp_template'; + } + + /** + * @inheritDoc + */ + protected function getFilePath(string $filename, string $application): string + { + return \sprintf( + '%s/acp/templates/%s.tpl', + Application::getDirectory($application), + $filename + ); + } +} diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index c2298b269b..15a68cb2e1 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -2646,6 +2646,10 @@ Kein Abschnitt darf leer sein und alle Abschnitten dürfen nur folgende Zeichen fileDelete-Package Installation Plugin löscht Dateien, die mit dem file-Package Installation Plugin installiert wurden. {if LANGUAGE_USE_INFORMAL_VARIANT}Du kannst{else}Sie können{/if} mehr Informationen in der Entwickler-Dokumentation finden.]]> + acpTemplateDelete-Package Installation Plugin löscht Templates, die mit dem acpTemplate-Package Installation Plugin installiert wurden. {if LANGUAGE_USE_INFORMAL_VARIANT}Du kannst{else}Sie können{/if} mehr Informationen in der Entwickler-Dokumentation finden.]]> + + .tpl an.]]> + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 027b0b02aa..b857c60828 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -2576,6 +2576,10 @@ If you have already bought the licenses for the listed apps, th fileDelete package installation plugin installs deletes files installed with the file package installation plugin. You can find more information in the developer documentation.]]> + acpTemplateDelete package installation plugin installs deletes templates installed with the acpTemplate package installation plugin. You can find more information in the developer documentation.]]> + + .tpl.]]> +