fix(updateserver): use client=0 for packages (#482) #488
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user