-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscript.php
32 lines (27 loc) · 880 Bytes
/
script.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
* @package Joomla.Plugin
* @subpackage Content.Sismosvgwcounter
*
* @author Martina Scholz <martina@simplysmart-it.de>
* @copyright (C) 2023 Martina Scholz, SimplySmart-IT <https://simplysmart-it.de>
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html; see LICENSE.txt
* @link https://simplysmart-it.de
*/
defined('_JEXEC') or die();
use Joomla\CMS\Factory;
use Joomla\CMS\Installer\InstallerScript;
class plgContentSismosvgwcounterInstallerScript extends InstallerScript
{
protected $minimumPhp = '7.4.0';
protected $minimumJoomla = '4.0.0';
public function postflight($type, $parent)
{
if ($type != 'install' && $type != 'discover_install') {
return;
}
$db = Factory::getDbo();
$db->setQuery("update #__extensions set enabled=1 where type = 'plugin' and element = 'sismosvgwcounter'");
$db->execute();
}
}