From ac407779db18367036213ef36f702681bf55742c Mon Sep 17 00:00:00 2001 From: quix0r Date: Tue, 3 Jul 2012 21:49:58 +0000 Subject: [PATCH] import_request_variables() is no longer valid with PHP 5.4.4 (or less?) --- inc/config-global.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/inc/config-global.php b/inc/config-global.php index 038d1dec8b..56ae1735bd 100644 --- a/inc/config-global.php +++ b/inc/config-global.php @@ -53,8 +53,11 @@ if (function_exists('date_default_timezone_set')) { // CFG: ERROR_REPORTING error_reporting(E_ALL | E_STRICT); -// CFG: REGISTER-GLOBALS -@import_request_variables(''); +// Is the function there? (removed in PHP 5.4.x) +if (function_exists('import_request_variables')) { + // CFG: REGISTER-GLOBALS + @import_request_variables(''); +} // END - if // Detect path (without 'inc') and fix windozer paths $path = str_replace("\\", '/', substr(dirname(__FILE__), 0, -3)); -- 2.39.2