forked from bsakhanov/mod_callback_mail
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.php
More file actions
29 lines (23 loc) · 723 Bytes
/
script.php
File metadata and controls
29 lines (23 loc) · 723 Bytes
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
<?php defined('_JEXEC') or die;
/*
* @package mod_callback_mail
* @copyright Copyright (C) 2019 Aleksey A. Morozov (AlekVolsk). All rights reserved.
* @license GNU General Public License version 3 or later; see http://www.gnu.org/licenses/gpl-3.0.txt
*/
use Joomla\CMS\Factory;
use Joomla\CMS\Version;
class mod_callback_mailInstallerScript
{
public function preflight($type, $parent)
{
if ($type != 'uninstall') {
$app = Factory::getApplication();
$jversion = new Version();
if (!$jversion->isCompatible('3.7')) {
$app->enqueueMessage('Please upgrade to at least Joomla! 3.6 before continuing!', 'error');
return false;
}
}
return true;
}
}