diff options
author | Root <development@fractureme.com> | 2012-05-28 02:06:10 +0200 |
---|---|---|
committer | Root <development@fractureme.com> | 2012-05-28 02:06:10 +0200 |
commit | 3cc8502b48946f7298797393cea0a7183c325244 (patch) | |
tree | 40cd203c6a3bcf13e47cbb20051491c32979e432 /index.php | |
parent | 99e602d25051ed449255fe16c4aa0aadd7d05c1f (diff) |
Changed to show all the errors on dev
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -52,18 +52,16 @@ * By default development will show errors but testing and live will hide them. */ -// By default show all except notifications, deprecated and strict errors -error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_STRICT); - -// Show or hide errors depending on current environment switch (ENVIRONMENT) { case 'development': + error_reporting(E_ALL); ini_set('display_errors', 1); break; case 'testing': case 'production': + error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_STRICT); ini_set('display_errors', 0); break; |