mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
Option to log critical errors added. ie. define('e_LOG_CRITICAL', true);
This commit is contained in:
@@ -1079,6 +1079,17 @@ $SYSTEM_DIRECTORY = "e107_system/";</pre>
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
if(defined('e_LOG_CRITICAL'))
|
||||
{
|
||||
$date = date('r');
|
||||
file_put_contents(e_LOG.'criticalError.log',$date."\t\t". strip_tags($message)."\n", FILE_APPEND);
|
||||
$message = LAN_ERROR_46; // "Check log for details";
|
||||
$line = null;
|
||||
$file = null;
|
||||
}
|
||||
|
||||
|
||||
if(!defined('HEADERF'))
|
||||
{
|
||||
echo $errorHead;
|
||||
|
Reference in New Issue
Block a user