]> git.mxchange.org Git - mailer.git/blobdiff - inc/config-global.php
import_request_variables() is no longer valid with PHP 5.4.4 (or less?)
[mailer.git] / inc / config-global.php
index f43e484d1ea251f2b6b3f81d9707ea878fd8952a..56ae1735bdb53c62279d721f582761f561d55ac6 100644 (file)
@@ -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));
@@ -101,8 +104,8 @@ setConfigEntry('CACHE_PATH', 'inc/cache/');
 // CFG: INTERNAL-STATS (This setting is overwritten by ext-other equal and prior version 0.2.7)
 setConfigEntry('internal_stats', 'N');
 
-// GLOBAL: DEBUG-TEMPLATE-CACHE
-setConfigEntry('DEBUG_TEMPLATE_CACHE', 'N');
+// CFG: DEBUG-TEMPLATE-CACHE
+setConfigEntry('DEBUG_TEMPLATE_CACHE', 'Y');
 
 // CFG: SALT-LENGTH
 setConfigEntry('salt_length', 10);