Current Directory: /home/astoriaah/www/plugins/system/widgetkit_zoo
Viewing File: /home/astoriaah/www/plugins/system/widgetkit_zoo/script.php
<?php
defined('_JEXEC') or die;
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Factory;
class plgSystemWidgetkit_zooInstallerScript
{
public function install($parent)
{
// enable plugin only if ZOO installed and enabled
if (file_exists(JPATH_ADMINISTRATOR . '/components/com_zoo/config.php') && ComponentHelper::getComponent('com_zoo', true)->enabled) {
Factory::getDBO()->setQuery("UPDATE `#__extensions` SET `enabled` = 1 WHERE `type` = 'plugin' AND `element` = 'widgetkit_zoo'")->execute();
}
}
public function uninstall($parent) {}
public function update($parent) {}
public function preflight($type, $parent) {}
public function postflight($type, $parent) {}
}