From dcff922c565a1f37057d7c71864f982ed3b0e10a Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Sat, 6 Jun 2026 20:32:05 -0500 Subject: [PATCH] fix: exclude MokoWaaSBase from stale update site cleanup cleanupStaleUpdateSites() matched '%MokoWaaS%' which also caught MokoWaaSBase entries, deleting their update server registration. Added NOT LIKE exclusions for MokoWaaSBase. --- source/script.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/script.php b/source/script.php index 764c5b16..0a29545a 100644 --- a/source/script.php +++ b/source/script.php @@ -595,12 +595,14 @@ class Pkg_MokowaasInstallerScript $db = Factory::getDbo(); $dynamicUrl = 'https://git.mokoconsulting.tech/MokoConsulting/MokoWaaS/updates.xml'; - // Find all MokoWaaS update sites + // Find MokoWaaS update sites (exclude MokoWaaSBase and other Moko extensions) $query = $db->getQuery(true) ->select($db->quoteName(['update_site_id', 'location'])) ->from($db->quoteName('#__update_sites')) ->where('(' . $db->quoteName('name') . ' LIKE ' . $db->quote('%MokoWaaS%') - . ' OR ' . $db->quoteName('location') . ' LIKE ' . $db->quote('%MokoWaaS%') . ')'); + . ' OR ' . $db->quoteName('location') . ' LIKE ' . $db->quote('%MokoWaaS%') . ')') + ->where($db->quoteName('name') . ' NOT LIKE ' . $db->quote('%MokoWaaSBase%')) + ->where($db->quoteName('location') . ' NOT LIKE ' . $db->quote('%MokoWaaSBase%')); $db->setQuery($query); $sites = $db->loadObjectList();