mirror of
https://github.com/joomla/joomla-cms.git
synced 2024-06-16 09:02:52 +00:00
Define the minimum supported PHP version as a constant
This commit is contained in:
parent
1387a63899
commit
ed525eff5f
|
@ -6,9 +6,14 @@
|
|||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
if (version_compare(PHP_VERSION, '5.3.10', '<'))
|
||||
/**
|
||||
* Define the application's minimum supported PHP version as a constant so it can be referenced within the application.
|
||||
*/
|
||||
define('JOOMLA_MINIMUM_PHP', '5.3.10');
|
||||
|
||||
if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<'))
|
||||
{
|
||||
die('Your host needs to use PHP 5.3.10 or higher to run this version of Joomla!');
|
||||
die('Your host needs to use PHP ' . JOOMLA_MINIMUM_PHP . ' or higher to run this version of Joomla!');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,9 +6,14 @@
|
|||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
if (version_compare(PHP_VERSION, '5.3.10', '<'))
|
||||
/**
|
||||
* Define the application's minimum supported PHP version as a constant so it can be referenced within the application.
|
||||
*/
|
||||
define('JOOMLA_MINIMUM_PHP', '5.3.10');
|
||||
|
||||
if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<'))
|
||||
{
|
||||
die('Your host needs to use PHP 5.3.10 or higher to run this version of Joomla!');
|
||||
die('Your host needs to use PHP ' . JOOMLA_MINIMUM_PHP . ' or higher to run this version of Joomla!');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,9 +6,14 @@
|
|||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
if (version_compare(PHP_VERSION, '5.3.10', '<'))
|
||||
/**
|
||||
* Define the application's minimum supported PHP version as a constant so it can be referenced within the application.
|
||||
*/
|
||||
define('JOOMLA_MINIMUM_PHP', '5.3.10');
|
||||
|
||||
if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<'))
|
||||
{
|
||||
die('Your host needs to use PHP 5.3.10 or higher to run this version of Joomla!');
|
||||
die('Your host needs to use PHP ' . JOOMLA_MINIMUM_PHP . ' or higher to run this version of Joomla!');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -233,8 +233,8 @@ class InstallationModelSetup extends JModelBase
|
|||
|
||||
// Check the PHP Version.
|
||||
$option = new stdClass;
|
||||
$option->label = JText::_('INSTL_PHP_VERSION') . ' >= 5.3.10';
|
||||
$option->state = version_compare(PHP_VERSION, '5.3.10', '>=');
|
||||
$option->label = JText::_('INSTL_PHP_VERSION') . ' >= ' . JOOMLA_MINIMUM_PHP;
|
||||
$option->state = version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '>=');
|
||||
$option->notice = null;
|
||||
$options[] = $option;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user