-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathscript.php
33 lines (28 loc) · 867 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
33
<?php
/**
* @package Joomla - Yandex.Metrika insert
* @version 1.1.3
* @author Artem Vasilev - webmasterskaya.xyz
* @copyright Copyright (c) 2018 - 2022 Webmasterskaya. All rights reserved.
* @license GNU/GPL license: https://www.gnu.org/copyleft/gpl.html
* @link https://webmasterskaya.xyz/
*/
defined('_JEXEC') or die;
class plgSystemYaMetrikInsertInstallerScript
{
function preflight($type, $parent)
{
jimport('joomla.version');
// Check compatible Joomla version
$jversion = new JVersion();
if (!$jversion->isCompatible('3.8.1'))
{
JFactory::getApplication()->enqueueMessage(JText::_('PLG_SYSTEM_YAMETRIKINSERT_WRONG_JOOMLA'), 'error');
return false;
}
}
function postflight($type, $parent)
{
JFactory::getApplication()->enqueueMessage(JText::_('PLG_SYSTEM_YAMETRIKINSERT_WELCOME_MESSAGE'), 'notice');
}
}