ssue 3635 인스톨시 php version check 수정

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13190 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
akasima 2013-11-08 07:04:43 +00:00
parent 5461e7249c
commit 172d4d8b9c
2 changed files with 6 additions and 12 deletions

View file

@ -330,7 +330,9 @@ class installController extends install
// Check each item
$checklist = array();
// 0. check your version of php (5.2.4 upper)
if(version_compare(phpversion(), '5.2.4') == -1) $checklist['php_version'] = false;
$checkPHPVersion = phpversion();
$checkPHPVersion = "5.2.1";
if(version_compare($checkPHPVersion, '5.2.4') == -1) $checklist['php_version'] = false;
else $checklist['php_version'] = true;
// 1. Check permission
if(is_writable('./')||is_writable('./files')) $checklist['permission'] = true;
@ -357,7 +359,7 @@ class installController extends install
// Save the checked result to the Context
Context::set('checklist', $checklist);
Context::set('install_enable', $install_enable);
Context::set('phpversion', phpversion());
Context::set('phpversion', $checkPHPVersion);
return $install_enable;
}