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