diff --git a/src/script.php b/src/script.php index 878788d..e11ec38 100644 --- a/src/script.php +++ b/src/script.php @@ -21,9 +21,10 @@ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\Installer\InstallerAdapter; +use Joomla\CMS\Installer\InstallerScriptInterface; use Joomla\CMS\Log\Log; -class Tpl_MokoonyxInstallerScript +class Tpl_MokoonyxInstallerScript implements InstallerScriptInterface { private const MIN_PHP = '8.1.0'; private const MIN_JOOMLA = '4.4.0'; @@ -87,8 +88,8 @@ class Tpl_MokoonyxInstallerScript public function postflight(string $type, InstallerAdapter $parent): bool { - // On install: migrate from MokoCassiopeia if it exists - if ($type === 'install') { + // On install or update: migrate from MokoCassiopeia if it exists + if ($type === 'install' || $type === 'update') { $this->migrateFromCassiopeia(); }