diff --git a/libraries/src/CMS/Installer/InstallerAdapter.php b/libraries/src/CMS/Installer/InstallerAdapter.php index ce624b82b3785..7850e67cb96cc 100644 --- a/libraries/src/CMS/Installer/InstallerAdapter.php +++ b/libraries/src/CMS/Installer/InstallerAdapter.php @@ -1201,6 +1201,17 @@ public function uninstall($id) $this->setupScriptfile(); + try + { + $this->triggerManifestScript('preflight'); + } + catch (\RuntimeException $e) + { + \JLog::add($e->getMessage(), \JLog::WARNING, 'jerror'); + + return false; + } + try { $this->triggerManifestScript('uninstall'); @@ -1264,6 +1275,18 @@ public function uninstall($id) $retval = false; } + // And now we run the postflight + try + { + $this->triggerManifestScript('postflight'); + } + catch (\RuntimeException $e) + { + \JLog::add($e->getMessage(), \JLog::WARNING, 'jerror'); + + $retval = false; + } + return $retval; }