diff --git a/main/inc/lib/api.lib.php b/main/inc/lib/api.lib.php index f07e130257..253117d466 100644 --- a/main/inc/lib/api.lib.php +++ b/main/inc/lib/api.lib.php @@ -21,7 +21,7 @@ use Chamilo\CoreBundle\Entity\SettingsCurrent; */ // PHP version requirement. -define('REQUIRED_PHP_VERSION', '5.5'); +define('REQUIRED_PHP_VERSION', '7.1.3'); define('REQUIRED_MIN_MEMORY_LIMIT', '128'); define('REQUIRED_MIN_UPLOAD_MAX_FILESIZE', '10'); define('REQUIRED_MIN_POST_MAX_SIZE', '10'); @@ -767,8 +767,8 @@ function api_get_path($path = '', $configuration = []) SYS_CSS_PATH => 'app/Resources/public/css/', SYS_PLUGIN_PATH => 'plugin/', WEB_PLUGIN_PATH => 'plugin/', - SYS_ARCHIVE_PATH => 'app/cache/', - WEB_ARCHIVE_PATH => 'app/cache/', + SYS_ARCHIVE_PATH => 'var/cache/', + WEB_ARCHIVE_PATH => 'var/cache/', SYS_HOME_PATH => 'app/home/', WEB_HOME_PATH => 'app/home/', REL_HOME_PATH => 'app/home/', diff --git a/main/install/index.php b/main/install/index.php index 2eb1d8e5b4..a2ac0445a7 100755 --- a/main/install/index.php +++ b/main/install/index.php @@ -133,7 +133,14 @@ $update_from_version_8 = array( '1.10.2', '1.10.4', '1.10.6', - '1.10.8' + '1.10.8', + '1.11.0', + '1.11.1', + '1.11.2', + '1.11.4', + '1.11.6', + '1.11.8', + '1.11.10', ); $my_old_version = ''; diff --git a/main/install/install.lib.php b/main/install/install.lib.php index 2cb5df15d2..2e9c254918 100755 --- a/main/install/install.lib.php +++ b/main/install/install.lib.php @@ -760,7 +760,7 @@ function display_requirements( '.get_lang('PHPVersion').' >= '.REQUIRED_PHP_VERSION.' '; - if (phpversion() < REQUIRED_PHP_VERSION) { + if (version_compare(phpversion(),REQUIRED_PHP_VERSION, '>=') > 1) { echo ''.get_lang('PHPVersionError').''; } else { echo ''.get_lang('PHPVersionOK').' '.phpversion().''; diff --git a/main/install/version.php b/main/install/version.php index 48547a3b2d..4ee2292a3b 100755 --- a/main/install/version.php +++ b/main/install/version.php @@ -13,10 +13,10 @@ /** * Variables used from the main/install/index.php */ -$new_version = '1.11.6'; +$new_version = '2.0.0'; $new_version_status = 'alpha'; $new_version_last_id = 0; $new_version_stable = false; -$new_version_major = false; +$new_version_major = true; $software_name = 'Chamilo'; $software_url = 'https://chamilo.org/';