From 5e63b4b8a0c6e982bdb01299c1ce175d521b2d35 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Wed, 1 Dec 2010 16:20:59 +1100 Subject: [PATCH] Optional force display of errors --- inc/config.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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.