33 lines
820 B
PHP
33 lines
820 B
PHP
<?php
|
|
|
|
/**
|
|
* @package Advanced Custom Fields
|
|
* @version 2.8.8 Pro
|
|
*
|
|
* @author Tassos Marinos <info@tassos.gr>
|
|
* @link http://www.tassos.gr
|
|
* @copyright Copyright © 2019 Tassos Marinos All Rights Reserved
|
|
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
|
|
*/
|
|
|
|
defined('_JEXEC') or die('Restricted access');
|
|
|
|
require_once __DIR__ . '/script.install.helper.php';
|
|
|
|
class PlgSystemACFInstallerScript extends PlgSystemACFInstallerScriptHelper
|
|
{
|
|
public $name = 'ACF';
|
|
public $alias = 'acf';
|
|
public $extension_type = 'plugin';
|
|
|
|
public function onAfterInstall()
|
|
{
|
|
if ($this->install_type == 'update')
|
|
{
|
|
require_once __DIR__ . '/helper/migrator.php';
|
|
|
|
$migrator = new ACFMigrator($this->installedVersion);
|
|
$migrator->do();
|
|
}
|
|
}
|
|
} |