| Current Path : /var/www/consult-e-syn/public_html/plugins/sh404sefextplugins/com_ats/ |
| Current File : /var/www/consult-e-syn/public_html/plugins/sh404sefextplugins/com_ats/script.php |
<?php
/**
* @package ats
* @copyright Copyright (c)2011-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU General Public License version 3, or later
*/
use Joomla\CMS\Installer\Adapter\PluginAdapter;
defined('_JEXEC') or die;
// Load FOF if not already loaded
if (!defined('FOF40_INCLUDED') && !@include_once(JPATH_LIBRARIES . '/fof40/include.php'))
{
throw new RuntimeException('This extension requires FOF 4.');
}
class plgsh404sefextpluginsCom_atsInstallerScript extends FOF40\InstallScript\Plugin
{
/**
* Overrides FOF parent method to prevent files being copied in the wrong folder
*
* @param JInstallerAdapterComponent $parent
*/
protected function bugfixFilesNotCopiedOnUpdate(PluginAdapter $parent): void
{
/*
* This plugin is kinda special: it uses Joomla installer but has his own logic within the manifest file. This means
* that it must be named "com_ats" even if it's a plugin and goes in a different folder. This causes FOF method
* `bugfixFilesNotCopiedOnUpdate` to calculate the wrong path, resulting in files being copied in the wrong place.
* Since they are only 3 files, the easiest solution is to override parent method and deal with it.
*/
}
}