Do nothing in file deletion PIPs during uninstallation
authorMatthias Schmidt <gravatronics@live.com>
Fri, 11 Jun 2021 12:26:06 +0000 (14:26 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 11 Jun 2021 12:26:06 +0000 (14:26 +0200)
wcfsetup/install/files/lib/system/package/plugin/AbstractFileDeletePackageInstallationPlugin.class.php

index f08936193689b9a9ae265b563b868de1c163b027..42b901729b0501e299aca834c0cdc490a0840fb4 100644 (file)
@@ -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.