1
0
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:
Cameron
2016-03-14 19:17:37 -07:00
parent 583a11dca8
commit 43db0d2ae4
3 changed files with 14 additions and 0 deletions

View File

@@ -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;