primo commit
This commit is contained in:
30
libraries/regularlabs/script.install.php
Normal file
30
libraries/regularlabs/script.install.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Regular Labs Library
|
||||
* @version 24.11.1459
|
||||
*
|
||||
* @author Peter van Westen <info@regularlabs.com>
|
||||
* @link https://regularlabs.com
|
||||
* @copyright Copyright © 2024 Regular Labs All Rights Reserved
|
||||
* @license GNU General Public License version 2 or later
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory as JFactory;
|
||||
|
||||
if ( ! class_exists('RegularLabsInstallerScript'))
|
||||
{
|
||||
class RegularLabsInstallerScript
|
||||
{
|
||||
public function postflight($install_type, $adapter)
|
||||
{
|
||||
if ( ! in_array($install_type, ['install', 'update']))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
JFactory::getCache()->clean('_system');
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user