summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorRoot <development@fractureme.com>2012-05-28 02:06:10 +0200
committerRoot <development@fractureme.com>2012-05-28 02:06:10 +0200
commit3cc8502b48946f7298797393cea0a7183c325244 (patch)
tree40cd203c6a3bcf13e47cbb20051491c32979e432 /index.php
parent99e602d25051ed449255fe16c4aa0aadd7d05c1f (diff)
Changed to show all the errors on dev
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/index.php b/index.php
index 6ffe4864e..c212cac84 100644
--- a/index.php
+++ b/index.php
@@ -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;