From f42330f90f61b9772d417a01b8fd6de906c79c81 Mon Sep 17 00:00:00 2001 From: Sergey Romaneko Date: Thu, 25 Oct 2012 14:29:03 +0300 Subject: [PATCH] Installer: use version_compare() function to compare php versions. --- install.php | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/install.php b/install.php index 3c363e8..b6aebf3 100644 --- a/install.php +++ b/install.php @@ -15,14 +15,7 @@ // Load bootstrap file require_once(ROOT . DS . 'monstra' . DS . 'bootstrap.php'); - - // Setting error display depending on debug mode or not - // Get php version id - if ( ! defined('PHP_VERSION_ID')){ - $version = PHP_VERSION; - define('PHP_VERSION_ID', ($version{0} * 10000 + $version{2} * 100 + $version{4})); - } - + // Get array with the names of all modules compiled and loaded $php_modules = get_loaded_extensions(); @@ -182,7 +175,8 @@
  • '.__('PHP 5.2 or greater is required', 'system').'
  • '; } else { echo '
  • '.__('PHP Version', 'system').' '.PHP_VERSION.'
  • ';