No Code Attached Yet
avatar brianteeman
brianteeman
25 Jan 2022

One for you @PhilETaylor

starts here

/**
* Adds or updates a post-installation message (PIM) definition. You can use this in your post-installation script using this code:
*
* require_once JPATH_LIBRARIES . '/fof/include.php';
* FOFModel::getTmpInstance('Messages', 'PostinstallModel')->addPostInstallationMessage($options);

avatar brianteeman brianteeman - open - 25 Jan 2022
avatar joomla-cms-bot joomla-cms-bot - change - 25 Jan 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 25 Jan 2022
avatar brianteeman brianteeman - change - 25 Jan 2022
The description was changed
avatar brianteeman brianteeman - edited - 25 Jan 2022
avatar shagungarg0
shagungarg0 - comment - 10 Feb 2022

is this issue only related to remove fof lines from comments?

avatar brianteeman
brianteeman - comment - 10 Feb 2022

It means that the code comments need to be updated so that they are correct

avatar joomdonation
joomdonation - comment - 14 Nov 2022

@brianteeman Are you interested to make the PR to correct the comment? We can replace the mentioned code with the new code below:

Factory::getApplication()->bootComponent('com_postinstall')
->getMVCFactory()->createModel('Messages', 'Administrator', ['ignore_request' => true])
->addPostInstallationMessage($options);

Thanks !

avatar Hackwar
Hackwar - comment - 14 Nov 2022

I created a PR in #39214. Closing this issue.

avatar Hackwar Hackwar - change - 14 Nov 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-11-14 10:03:37
Closed_By Hackwar
avatar Hackwar Hackwar - close - 14 Nov 2022
avatar brianteeman
brianteeman - comment - 14 Nov 2022

thanks

Add a Comment

Login with GitHub to post a comment