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();