From 25e1c4184e7048313f040499bc8e413ed6d61b9e Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 11 Jun 2021 14:26:06 +0200 Subject: [PATCH] Do nothing in file deletion PIPs during uninstallation --- ...ileDeletePackageInstallationPlugin.class.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/wcfsetup/install/files/lib/system/package/plugin/AbstractFileDeletePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/AbstractFileDeletePackageInstallationPlugin.class.php index f089361936..42b901729b 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/AbstractFileDeletePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/AbstractFileDeletePackageInstallationPlugin.class.php @@ -139,6 +139,23 @@ abstract class AbstractFileDeletePackageInstallationPlugin extends AbstractXMLPa return []; } + /** + * @inheritDoc + */ + public function hasUninstall() + { + // File deletions cannot be reverted. + return false; + } + + /** + * @inheritDoc + */ + public function uninstall() + { + // File deletions cannot be reverted. + } + /** * Returns the language item with the description of the file field or `null` if no description * should be shown. -- 2.20.1