Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2015

Joomla! 5.x Coding • Component Installer Problem in Joomla 5.2.2

$
0
0
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)

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');    }  }      
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.

Statistics: Posted by jjbongio — Wed Dec 04, 2024 1:40 am



Viewing all articles
Browse latest Browse all 2015

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>