reverted : ps

This commit is contained in:
VENBA-emp-10 sanjeev 2022-03-15 20:09:23 +05:30
parent ba2d60e353
commit 5ca7ee0e0b

View File

@ -18,7 +18,7 @@
* NOTE: If you change these, also change the error_reporting() code below * NOTE: If you change these, also change the error_reporting() code below
* *
*/ */
define('ENVIRONMENT', 'development'); define('ENVIRONMENT', 'production');
/* /*
*--------------------------------------------------------------- *---------------------------------------------------------------
* ERROR REPORTING * ERROR REPORTING
@ -27,16 +27,15 @@
* Different environments will require different levels of error reporting. * Different environments will require different levels of error reporting.
* By default development will show errors but testing and live will hide them. * By default development will show errors but testing and live will hide them.
*/ */
if (defined('ENVIRONMENT')) if (defined('ENVIRONMENT'))
{ {
switch (ENVIRONMENT) switch (ENVIRONMENT)
{ {
case 'development': case 'development':
error_reporting(0);
break;
case 'testing': case 'testing':
error_reporting(E_ALL);
break;
case 'production': case 'production':
error_reporting(0); error_reporting(0);
break; break;
@ -45,7 +44,6 @@ if (defined('ENVIRONMENT'))
exit('The application environment is not set correctly.'); exit('The application environment is not set correctly.');
} }
} }
/* /*
*--------------------------------------------------------------- *---------------------------------------------------------------
* SYSTEM FOLDER NAME * SYSTEM FOLDER NAME
@ -202,4 +200,4 @@ if (defined('ENVIRONMENT'))
require_once BASEPATH.'core/CodeIgniter.php'; require_once BASEPATH.'core/CodeIgniter.php';
/* End of file index.php */ /* End of file index.php */
/* Location: ./index.php */ /* Location: ./index.php */