summaryrefslogtreecommitdiff
path: root/inc/config.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2010-12-01 16:20:59 +1100
committerPaul Merrill <napalminc@gmail.com>2010-12-01 04:14:17 -0800
commite149f3f1bde7c1d06e987ff9f547a27b992f4afc (patch)
tree02e64ca2b7574d66f42701b1f9e2bf321aa1ae47 /inc/config.php
parentb61193d86b9ba4389aca92cc579e868c1564e7ad (diff)
Optional force display of errors
Diffstat (limited to 'inc/config.php')
-rw-r--r--inc/config.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/inc/config.php b/inc/config.php
index f7ab10d6..2cd3b71d 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -38,6 +38,9 @@
define('THREADS_PER_PAGE', 10, true);
define('MAX_PAGES', 5, true);
define('THREADS_PREVIEW', 5, true);
+
+ // For development purposes. Turns 'display_errors' on. Not recommended for production.
+ define('VERBOSE_ERRORS', true, true);
// Error messages
define('ERROR_LURK', 'Lurk some more before posting.', true);
@@ -151,6 +154,11 @@
chdir(ROOT_FILE);
}
+ if(VERBOSE_ERRORS) {
+ error_reporting(E_ALL);
+ ini_set('display_errors', 1);
+ }
+
/*
Multi-board support removes any use for this.