generated from MokoConsulting/Template-Joomla
fix: honest install success for package installer #16
Reference in New Issue
Block a user
Delete Branch "fix/honest-install-success"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The
pkg_mokosuitesupportpackage postflight showed the "License Key Required" next-steps message even when a bundled child extension failed to install. Joomla's package installer only logs a failed sub-install but still runs postflight, so a partial install looked successful.Change
missingChildExtensions(InstallerAdapter $adapter): reads$adapter->getParent()->getManifest()->files->fileand verifies every declared child actually landed in#__extensions.element+type.element+type+folder, stripping the leadingplg_<group>_from the manifest id to derive the real element.postflight(), gate the license/next-steps message on it: if any child is missing, enqueue an error listing them (escaped withhtmlspecialchars) and return before the license message.[]so a transient glitch never turns a good install into a false failure. Housekeeping stays unconditional.php -lpasses. Mirrors MokoSuiteClient PR #300 / MokoSuiteHQ PR #72.https://claude.ai/code/session_01B9aZHSWbiiZykJD88pYx8R