[0005509] Installer: Fixed errors handling, fixed errors on db passwords containg...
[fa-stable.git] / install / isession.inc
index bf21f18b4bf0c68f7003b8dcef0d9cb46456dfd0..b65d52ed0c79ae6e22cbb9f01a08127457df66d4 100644 (file)
@@ -125,6 +125,14 @@ $inst_langs = array(
   'zh_CN' => array ( 'name' => 'Chinese Simplifed',    'code' => 'zh_CN',      'encoding' => 'utf-8'),
 );
 
+if ($SysPrefs->go_debug > 0)
+       $cur_error_level = -1;
+else
+       $cur_error_level = E_USER_WARNING|E_USER_ERROR|E_USER_NOTICE;
+
+error_reporting($cur_error_level);
+ini_set("display_errors", "On");
+
 $Ajax = new Ajax();
 
 get_text_init();