Change minimum PHP version to 5.5.9

This commit is contained in:
Kijin Sung 2016-03-22 10:45:27 +09:00
parent 501461d010
commit e34f59a66f
4 changed files with 21 additions and 18 deletions

View file

@ -364,15 +364,14 @@ class installController extends install
$checklist = array();
// Check PHP version
$checklist['php_version'] = true;
if(version_compare(PHP_VERSION, __XE_MIN_PHP_VERSION__, '<'))
if(version_compare(PHP_VERSION, __XE_MIN_PHP_VERSION__, '>='))
{
$checklist['php_version'] = true;
}
else
{
$checklist['php_version'] = false;
}
if(version_compare(PHP_VERSION, __XE_RECOMMEND_PHP_VERSION__, '<'))
{
Context::set('phpversion_warning', true);
}
// Check DB
if(DB::getEnableList())

View file

@ -16,14 +16,13 @@
<span cond="!$val" class="error">ERROR</span>
</td>
</tr>
<tr cond="$key === 'php_version' && $phpversion_warning === true">
<tr cond="!$val && isset($lang->install_checklist_desc[$key])">
<td colspan="2" class="error_description">
{sprintf($lang->install_checklist_desc['php_version_warning'], __XE_RECOMMEND_PHP_VERSION__)} <a href="https://secure.php.net/supported-versions.php" target="_blank">[{$lang->more}]</a>
</td>
</tr>
<tr cond="$key !== 'php_version' && !$val && isset($lang->install_checklist_desc[$key])">
<td colspan="2" class="error_description">
{$lang->install_checklist_desc[$key]}
<!--@if($key === 'php_version')-->
{sprintf($lang->install_checklist_desc[$key], __XE_MIN_PHP_VERSION__)}
<!--@else-->
{$lang->install_checklist_desc[$key]}
<!--@end-->
</td>
</tr>
</block>