Installer: added check PHP < 5.4.0

This commit is contained in:
Taras Machyshyn
2015-06-05 13:08:47 +03:00
parent d186cd2b1a
commit b92295cbb1
+6 -1
View File
@@ -50,9 +50,15 @@ $language = new Language();
$langs = $language->get($userLang);
//END: get user selected language
$config = include('core/config.php');
require_once 'core/SystemHelper.php';
$systemHelper = new SystemHelper();
if (version_compare(PHP_VERSION, '5.4.0', '<')) {
die(str_replace('{minVersion}', $config['requirements']['phpVersion'], $langs['messages']['phpVersion']) . '.');
}
if (!$systemHelper->initWritable()) {
$dir = $systemHelper->getWritableDir();
@@ -128,7 +134,6 @@ $smarty->assign('tplName', $tplName);
$smarty->assign('action', ucfirst($action));
/** config */
$config = include('core/config.php');
$smarty->assign('config', $config);
if (Utils::isActionExists($action)) {