From 6d29e9a853d051891530bc0ad482f6bc0a2add4d Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Thu, 4 Jun 2026 10:31:43 -0500 Subject: [PATCH] fix: migrate MokoJoomTOS settings before retiring the plugin Swap order: migrateStandalonePlugins() now runs before removeRetiredExtensions() so TOS params are copied to mokowaas_offline before the old plugin is deleted. Authored-by: Moko Consulting Co-Authored-By: Claude Opus 4.6 (1M context) --- src/script.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/script.php b/src/script.php index 7bb49fd3..4a15e66e 100644 --- a/src/script.php +++ b/src/script.php @@ -34,10 +34,10 @@ class Pkg_MokowaasInstallerScript */ public function postflight($type, $parent) { - // Remove legacy and retired extensions + // Remove legacy extensions and migrate settings before retiring $this->cleanupLegacyExtensions(); - $this->removeRetiredExtensions(); $this->migrateStandalonePlugins(); + $this->removeRetiredExtensions(); $this->enablePlugin('system', 'mokowaas'); $this->enablePlugin('system', 'mokowaas_firewall');