I want to display the updated version of my component when it is installed.
I have been using a script.php file that looks like this (only relevant parts included)
This has worked fine until I installed Jooma 5.2.2. And it still works fine if I install from a directory, but not if I upload a zip file. The installation works, but the message is not displayed.
I determined in my debugger that the update function in the script.php file is invoked when the install is from a directory, but not when it is from an uploaded zip file.
I have been using a script.php file that looks like this (only relevant parts included)
Code:
class com_CSCCruiseInstallerScript extends InstallerScript{ function install ($parent) { Factory::getApplication()->enqueueMessage('Installed version ' . $parent->getManifest ()-> version, 'notice'); } function update ($parent) { Factory::getApplication()->enqueueMessage('Updated to version ' . $parent->getManifest ()-> version, 'notice'); } }
I determined in my debugger that the update function in the script.php file is invoked when the install is from a directory, but not when it is from an uploaded zip file.
Statistics: Posted by jjbongio — Wed Dec 04, 2024 1:40 am