mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-06-06 15:30:48 +00:00
phpcs
This commit is contained in:
parent
0d8590e092
commit
9771aef7db
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
/**
|
||||
* @author Daniel Dimitrov - compojoom.com
|
||||
* @date: 02.06.12
|
||||
* @author Daniel Dimitrov <daniel@compojoom.com>
|
||||
* @date 02.06.12
|
||||
*
|
||||
* @copyright Copyright (C) 2008 - 2012 compojoom.com . All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE
|
||||
|
@ -9,18 +9,36 @@
|
|||
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
|
||||
class com_jedcheckerInstallerScript
|
||||
/**
|
||||
* Class Com_JedcheckerInstallerScript
|
||||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
class Com_JedcheckerInstallerScript
|
||||
{
|
||||
protected $extension = 'com_jedchecker';
|
||||
|
||||
function preflight( $type, $parent ) {
|
||||
/**
|
||||
* Function executed before the the installation
|
||||
*
|
||||
* @param string $type - the installation type
|
||||
* @param JInstallerComponent $parent - the parent class
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function preflight($type, $parent)
|
||||
{
|
||||
$this->parent = $parent;
|
||||
if (version_compare(PHP_VERSION, '5.3.1', '<')) {
|
||||
|
||||
if (version_compare(PHP_VERSION, '5.3.1', '<'))
|
||||
{
|
||||
$this->loadLanguage();
|
||||
Jerror::raiseWarning(null, JText::sprintf('COM_JEDCHECKER_PHP_VERSION_INCOMPATIBLE', PHP_VERSION, '5.3.6'));
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -53,6 +71,7 @@ class com_jedcheckerInstallerScript
|
|||
{
|
||||
$msg = JText::sprintf('COM_JEDCHECKER_OLD_RULE_X_PHP_FILE_NOT_REMOVED', $rule);
|
||||
}
|
||||
|
||||
echo "<p>$msg</p>";
|
||||
}
|
||||
|
||||
|
@ -67,11 +86,17 @@ class com_jedcheckerInstallerScript
|
|||
{
|
||||
$msg = JText::sprintf('COM_JEDCHECKER_OLD_RULE_X_INI_FILE_NOT_REMOVED', $rule);
|
||||
}
|
||||
|
||||
echo "<p>$msg</p>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Load language necessary during the installation
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function loadLanguage()
|
||||
{
|
||||
$extension = $this->extension;
|
||||
|
|
Loading…
Reference in New Issue
Block a user