From 94adbd06ccec4187d34a097742f5697fb577d53e Mon Sep 17 00:00:00 2001 From: Tijn Kuyper Date: Thu, 4 Oct 2018 15:54:02 +0200 Subject: [PATCH] Optimise PHP version check for Github sync --- e107_admin/db.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/e107_admin/db.php b/e107_admin/db.php index 9fc135da2..fff4546fd 100644 --- a/e107_admin/db.php +++ b/e107_admin/db.php @@ -334,10 +334,9 @@ class system_tools // Check for minimum required PHP version, and display warning instead of sync button to avoid broken functionality after syncing // MIN_PHP_VERSION constant only defined in install.php, thus hardcoded here - $php_version = phpversion(); $min_php_version = '5.6'; - - if(version_compare($php_version, $min_php_version, "<")) + + if(version_compare(PHP_VERSION, $min_php_version, "<")) { $mes->addWarning("The minimum required PHP version is ".$min_php_version.". You are using PHP version ".$php_version.".
Syncing with Github has been disabled to avoid broken fuctionality."); // No nee to translate, developer mode only }