Joomla modules declare their element via the module="mod_foo" attribute
on the entry <filename>, not via an <element> tag. Both manifest_element.php
and release_package.php were missing this extraction, causing incorrect
element names and ZIP filenames for module-type extensions.
Added module="..." regex check in the element detection chain for both
files, matching what updates_xml_build.php already had.
Authored-by: Moko Consulting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add type prefix (mod_, com_, tpl_, lib_) to <element> in updates.xml
so it matches Joomla's #__extensions table. Previously only packages
got their prefix re-added after the strip on line 178.
- Prefer human-readable name from .mokogitea/manifest.xml <identity><name>
when the Joomla manifest <name> is a technical prefixed name (mod_foo).
Prevents display names like "Module - mod_mokojoomhero".
- Existing "Type - " prefix strip still prevents doubling when the
language key already resolves to "Module - MokoJoomHero".
Authored-by: Moko Consulting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>