fix(updateserver): use client=0 for packages (#482) #488

Merged
jmiller merged 1 commits from dev into main 2026-06-04 23:46:22 +00:00
+5 -3
View File
@@ -323,11 +323,13 @@ func GenerateJoomlaXML(ctx context.Context, repo *repo_model.Repository, require
infoURL = cfg.SupportURL
}
// Joomla <client> element: only relevant for plugins/modules (site vs administrator).
// Packages manage their own sub-extension clients; omit for package type.
// Joomla <client> element: packages use client_id=0 in #__extensions,
// so we must output <client>0</client> for Joomla to match the update
// to the installed extension. Other types default to "site" (client_id=0)
// or "administrator" (client_id=1).
client := "site"
if extType == "package" {
client = ""
client = "0"
}
u := xmlUpdate{