Rename log file
This commit is contained in:
1 parent
b754374b79
commit
346cbd5ca3
3 files changed
+4
-2
No files matched your search
@@ -1,4 +1,6 @@
|
||||
/log.html
|
||||
/app.log
|
||||
/globalsettings.php
|
||||
inc/log.html
|
||||
inc/app.log
|
||||
/vendor/
|
||||
+1
-1
@@ -11,7 +11,7 @@ use \Settings;
|
||||
class PhpObject
|
||||
{
|
||||
//Log file name
|
||||
const LOG_FILENAME = 'log.html';
|
||||
const LOG_FILENAME = 'app.log';
|
||||
private $sLogPath;
|
||||
|
||||
//Message types
|
||||
|
||||
@@ -68,7 +68,7 @@ function sendEmail($sApp, $sFromName, $sFromEmail, $sSubject, $sMsg, $sToEmail,
|
||||
chunk_split(base64_encode($sHtmlMessage));
|
||||
|
||||
//Store in case email fails
|
||||
//@file_put_contents('log.html', '<br />----<br /><br />'.$sHtmlMessage, FILE_APPEND);
|
||||
//@file_put_contents('app.log', '<br />----<br /><br />'.$sHtmlMessage, FILE_APPEND);
|
||||
|
||||
//Send
|
||||
if(mail($sToEmail, $sSubject, '', $sHeaders))
|
||||
|
||||
Reference in new issue
Block a user