fixes #1483 [install] cleanly alert user of PHP required version

This commit is contained in:
plegall
2021-10-08 17:24:24 +02:00
parent fb7aad8340
commit 4289dd8606
3 changed files with 4 additions and 1 deletions

View File

@@ -239,7 +239,8 @@ header('Content-Type: text/html; charset=UTF-8');
//------------------------------------------------- check php version
if (version_compare(PHP_VERSION, REQUIRED_PHP_VERSION, '<'))
{
include(PHPWG_ROOT_PATH.'install/php5_apache_configuration.php');
// include(PHPWG_ROOT_PATH.'install/php5_apache_configuration.php'); // to remove, with all its related content
$errors[] = l10n('PHP version %s required (you are running on PHP %s)', REQUIRED_PHP_VERSION, PHP_VERSION);
}
//----------------------------------------------------- template initialization