diff --git a/cli/updates_xml_build.php b/cli/updates_xml_build.php index 7d42617..44ec33b 100644 --- a/cli/updates_xml_build.php +++ b/cli/updates_xml_build.php @@ -259,7 +259,10 @@ function buildEntry( $lines[] = ' '; $lines[] = " {$extName}"; $lines[] = " {$extName} update"; - $lines[] = " {$extElement}"; + // Element in updates.xml must match what Joomla stores in #__extensions + // For packages: pkg_elementname. For plugins: elementname (folder handles grouping). + $dbElement = ($extType === 'package') ? "pkg_{$extElement}" : $extElement; + $lines[] = " {$dbElement}"; $lines[] = " {$extType}"; $lines[] = " {$entryVersion}"; if (!empty($clientTag)) $lines[] = $clientTag;