Skip to content

Commit 173a45e

Browse files
committed
Merge pull request #186 from d1maz/develop
shows error reporting, only in development
2 parents 5df8b21 + c77fccf commit 173a45e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

application/config/config.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@
1010
* Configuration for: Error reporting
1111
* Useful to show every little problem during development, but only show hard errors in production
1212
*/
13-
error_reporting(E_ALL);
14-
ini_set("display_errors", 1);
13+
define('ENVIRONMENT', 'development');
14+
15+
if (ENVIRONMENT == 'development' || ENVIRONMENT == 'dev') {
16+
error_reporting(E_ALL);
17+
ini_set("display_errors", 1);
18+
}
1519

1620
/**
1721
* Configuration for: URL

0 commit comments

Comments
 (0)