From: Matthias Schmidt Date: Fri, 11 Jun 2021 12:26:06 +0000 (+0200) Subject: Do nothing in file deletion PIPs during uninstallation X-Git-Tag: 5.5.0_Alpha_1~661 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=25e1c4184e7048313f040499bc8e413ed6d61b9e;p=GitHub%2FWoltLab%2FWCF.git Do nothing in file deletion PIPs during uninstallation --- 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.