From e76da072453affd4804ddbcfc84950f80d409364 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Fri, 14 Aug 2015 16:19:30 +0200 Subject: [PATCH] Fix server_type position --- main/inc/global.inc.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/main/inc/global.inc.php b/main/inc/global.inc.php index 22bf2d60cc..bab5a43acf 100755 --- a/main/inc/global.inc.php +++ b/main/inc/global.inc.php @@ -67,15 +67,6 @@ if ($passwordEncryption == 'bcrypt') { // Check the PHP version api_check_php_version($includePath.'/'); -// Error reporting settings. -if (api_get_setting('server_type') == 'test') { - ini_set('display_errors', '1'); - ini_set('log_errors', '1'); - error_reporting(-1); -} else { - error_reporting(E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR); -} - // Specification for usernames: // 1. ASCII-letters, digits, "." (dot), "_" (underscore) are acceptable, 40 characters maximum length. // 2. Empty username is formally valid, but it is reserved for the anonymous user. @@ -278,6 +269,15 @@ foreach ($result as & $row) { $_plugins[$key][] = $row['selected_value']; } +// Error reporting settings. +if (api_get_setting('server_type') == 'test') { + ini_set('display_errors', '1'); + ini_set('log_errors', '1'); + error_reporting(-1); +} else { + error_reporting(E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR); +} + // Load allowed tag definitions for kses and/or HTMLPurifier. require_once $libraryPath.'formvalidator/Rule/allowed_tags.inc.php';