1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-01 18:47:20 +01:00

display errors in plain-text for CLI users

This commit is contained in:
Savetheinternet 2011-06-07 15:21:36 +10:00
parent 9ffd23d408
commit 88ec10c6aa

View File

@ -66,6 +66,12 @@
global $board, $mod, $config; global $board, $mod, $config;
if(function_exists('sql_close')) sql_close(); if(function_exists('sql_close')) sql_close();
if(defined('STDIN')) {
// Running from CLI
die('Error: ' . $message);
}
die(Element('page.html', Array( die(Element('page.html', Array(
'config'=>$config, 'config'=>$config,
'title'=>'Error', 'title'=>'Error',