refactor: rename MokoWaaSBase references to MokoWaaSHQ
Update heartbeat endpoints, menu exclusions, language strings, and all cross-references to match the MokoWaaSHQ rename.
This commit is contained in:
+5
-5
@@ -595,14 +595,14 @@ class Pkg_MokowaasInstallerScript
|
||||
$db = Factory::getDbo();
|
||||
$dynamicUrl = 'https://git.mokoconsulting.tech/MokoConsulting/MokoWaaS/updates.xml';
|
||||
|
||||
// Find MokoWaaS update sites (exclude MokoWaaSBase and other Moko extensions)
|
||||
// Find MokoWaaS update sites (exclude MokoWaaSHQ 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%') . ')')
|
||||
->where($db->quoteName('name') . ' NOT LIKE ' . $db->quote('%MokoWaaSBase%'))
|
||||
->where($db->quoteName('location') . ' NOT LIKE ' . $db->quote('%MokoWaaSBase%'));
|
||||
->where($db->quoteName('name') . ' NOT LIKE ' . $db->quote('%MokoWaaSHQ%'))
|
||||
->where($db->quoteName('location') . ' NOT LIKE ' . $db->quote('%MokoWaaSHQ%'));
|
||||
$db->setQuery($query);
|
||||
$sites = $db->loadObjectList();
|
||||
|
||||
@@ -873,7 +873,7 @@ class Pkg_MokowaasInstallerScript
|
||||
}
|
||||
}
|
||||
|
||||
$endpoint = $baseUrl . '/api/index.php/v1/mokowaasbase/heartbeat';
|
||||
$endpoint = $baseUrl . '/api/index.php/v1/mokowaashq/heartbeat';
|
||||
|
||||
$ch = curl_init($endpoint);
|
||||
curl_setopt_array($ch, [
|
||||
@@ -892,7 +892,7 @@ class Pkg_MokowaasInstallerScript
|
||||
|
||||
if ($code >= 200 && $code < 300)
|
||||
{
|
||||
Factory::getApplication()->enqueueMessage('MokoWaaSBase heartbeat: site registered', 'message');
|
||||
Factory::getApplication()->enqueueMessage('MokoWaaSHQ heartbeat: site registered', 'message');
|
||||
}
|
||||
}
|
||||
catch (\Throwable $e)
|
||||
|
||||
Reference in New Issue
Block a user