Quote:
Originally Posted by jugo
Thanks Marco...this rocks.
Does anyone have a plugin / solution for this: I want to not display the ugly database error when the DB is down on non-vb pages where global.php is included.
|
In includes/class_core.php, find:
PHP Code:
eval('$message = "' . str_replace('"', '\"', file_get_contents(DIR . '/includes/database_error_page.html')) . '";');
die($message);
And replace by:
PHP Code:
eval('$message = "' . str_replace('"', '\"', file_get_contents(DIR . '/includes/database_error_page.html')) . '";');
if (VB_AREA != 'NonVB')
{
die($message);
}
Then in the top of your non vb page script:
PHP Code:
define('VB_AREA', 'NonVB');
PS This is not tested.