From 85597999075b0ac62d85d05e230381a2fba3d786 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Thu, 12 Jun 2014 15:25:40 +0200 Subject: [PATCH] constant outside of function --- application/ManiaControl.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/ManiaControl.php b/application/ManiaControl.php index e27405b2..b810f934 100644 --- a/application/ManiaControl.php +++ b/application/ManiaControl.php @@ -14,6 +14,9 @@ define('ManiaControlDir', __DIR__ . DIRECTORY_SEPARATOR); // Define fatal error level define('E_FATAL', E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR | E_RECOVERABLE_ERROR | E_USER_ERROR); +// Min PHP Version +define('MIN_PHP_VERSION', '5.4'); + // Set process settings ini_set('memory_limit', '64M'); if (!ini_get('date.timezone') && function_exists('date_default_timezone_set')) { @@ -62,7 +65,6 @@ logMessage('Starting ManiaControl...'); */ function checkRequirements() { // Check for min PHP version - define('MIN_PHP_VERSION', '5.4'); $phpVersion = phpversion(); $message = 'Checking for minimum required PHP-Version' . MIN_PHP_VERSION . ' ...'; if ($phpVersion < MIN_PHP_VERSION) {