generated from MokoConsulting/Template-Joomla
fix: honest installer success message #15
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
Applies the "honest installer success" pattern (mirrors MokoSuiteHQ PR #72 / MokoSuiteClient PR #300).
Installer type: package (
pkg_mokosuiteeditor.xml,<scriptfile>script.php</scriptfile>).The package postflight previously always showed the license / next-steps message. Joomla only logs a failed child sub-install but still runs postflight, so a partial install looked successful.
Change
postflight()now calls a new privatemissingChildExtensions()verifier that reads$parent->getParent()->getManifest(), iterates$manifest->files->file, and confirms each declared extension registered in#__extensions(element =id, minus a leadingplg_<group>_for plugins; plugins also matchfolder = group). If any are missing it enqueues anerror(htmlspecialchars'd names) and returns before the license message.Fails open: the whole check is wrapped in try/catch and returns
[]on any error, so a transient DB/IO glitch never fakes a failure.php -lpasses.https://claude.ai/code/session_01B9aZHSWbiiZykJD88pYx8R