forked from diddipoeler/GitHub-Joomla-Module
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.php
More file actions
39 lines (38 loc) · 927 Bytes
/
script.php
File metadata and controls
39 lines (38 loc) · 927 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
30
31
32
33
34
35
36
37
38
39
<?php
/**
* GitHub Module for Joomla!
*
* @package GitHubModule
*
* @copyright Copyright (C) 2011 Michael Babker. All rights reserved.
* @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
*/
/**
* Installation class to perform additional changes during install/uninstall/update
*
* @package GitHubModule
* @since 1.0
*/
class Mod_GitHubInstallerScript
{
/**
* Function to act prior to installation process begins
*
* @param string $type The action being performed
* @param string $parent The function calling this method
*
* @return mixed Boolean false on failure, void otherwise
*
* @since 1.0
*/
function preflight($type, $parent)
{
// Requires Joomla! 1.7
$jversion = new JVersion;
if (version_compare($jversion->getShortVersion(), '1.7', 'lt'))
{
JError::raiseNotice(null, JText::_('MOD_GITHUB_ERROR_INSTALL_J17'));
return false;
}
}
}