mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-13 16:34:52 +09:00
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:
parent
5461e7249c
commit
172d4d8b9c
2 changed files with 6 additions and 12 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue