소스 검색

If platform is in test mode show all warnings.

Julio Montoya 10 년 전
부모
커밋
eb87a3ccc6
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      main/inc/global.inc.php

+ 3 - 1
main/inc/global.inc.php

@@ -318,7 +318,9 @@ if (file_exists($mail_conf)) {
 }
 
 if (api_get_setting('server_type') == 'test') {
-    error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
+    ini_set('display_errors', '1');
+    ini_set('log_errors', '1');
+    error_reporting(-1);
 } else {
     /*
     Server type is not test