Optional force display of errors
This commit is contained in:
parent
b61193d86b
commit
e149f3f1bd
@ -39,6 +39,9 @@
|
|||||||
define('MAX_PAGES', 5, true);
|
define('MAX_PAGES', 5, true);
|
||||||
define('THREADS_PREVIEW', 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
|
// Error messages
|
||||||
define('ERROR_LURK', 'Lurk some more before posting.', true);
|
define('ERROR_LURK', 'Lurk some more before posting.', true);
|
||||||
define('ERROR_BOT', 'You look like a bot.', true);
|
define('ERROR_BOT', 'You look like a bot.', true);
|
||||||
@ -151,6 +154,11 @@
|
|||||||
chdir(ROOT_FILE);
|
chdir(ROOT_FILE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(VERBOSE_ERRORS) {
|
||||||
|
error_reporting(E_ALL);
|
||||||
|
ini_set('display_errors', 1);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Multi-board support removes any use for this.
|
Multi-board support removes any use for this.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user