Regular Labs (Peter van Westen): Advanced Module Manager 7.7.1 + Sourcerer 7.4.0 + Modals 9.13.0 + RegularLabs library 18.12.3953; commercial (regularlabs.com) -> deployed files. Signed-off-by: LÁZÁR Imre <imre@illusion.hu> Assisted-by: claude-code@claude-opus-4-8
47 lines
1.4 KiB
PHP
47 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* @package Advanced Module Manager
|
|
* @version 7.7.1
|
|
*
|
|
* @author Peter van Westen <info@regularlabs.com>
|
|
* @link http://www.regularlabs.com
|
|
* @copyright Copyright © 2018 Regular Labs All Rights Reserved
|
|
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
|
*/
|
|
|
|
defined('_JEXEC') or die;
|
|
|
|
require_once __DIR__ . '/script.install.helper.php';
|
|
|
|
class PlgSystemAdvancedModulesInstallerScript extends PlgSystemAdvancedModulesInstallerScriptHelper
|
|
{
|
|
public $name = 'ADVANCED_MODULE_MANAGER';
|
|
public $alias = 'advancedmodulemanager';
|
|
public $extname = 'advancedmodules';
|
|
public $extension_type = 'plugin';
|
|
|
|
public function uninstall($adapter)
|
|
{
|
|
$this->uninstallComponent($this->extname);
|
|
}
|
|
|
|
public function onAfterInstall($route)
|
|
{
|
|
$this->setPluginOrdering();
|
|
}
|
|
|
|
private function setPluginOrdering()
|
|
{
|
|
$query = $this->db->getQuery(true)
|
|
->update('#__extensions')
|
|
->set($this->db->quoteName('ordering') . ' = -1')
|
|
->where($this->db->quoteName('type') . ' = ' . $this->db->quote('plugin'))
|
|
->where($this->db->quoteName('element') . ' = ' . $this->db->quote('advancedmodules'))
|
|
->where($this->db->quoteName('folder') . ' = ' . $this->db->quote('system'));
|
|
$this->db->setQuery($query);
|
|
$this->db->execute();
|
|
|
|
JFactory::getCache()->clean('_system');
|
|
}
|
|
}
|