mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Removed unnecessary header from log when using append mode.
This commit is contained in:
parent
69cc367a08
commit
e989acb8f9
@ -647,12 +647,10 @@ class e_admin_log
|
||||
return;
|
||||
}
|
||||
|
||||
$text = "";
|
||||
|
||||
if(count($this->_allMessages))
|
||||
{
|
||||
$text .= " e107 CMS Log file : ".$logTitle." ".date('Y-m-d_H-i-s')."\n";
|
||||
$text .= "-------------------------------------------------------------------------------------------\n\n";
|
||||
$head = " e107 CMS Log file : ".$logTitle." ".date('Y-m-d_H-i-s')."\n";
|
||||
$head .= "-------------------------------------------------------------------------------------------\n\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -671,10 +669,15 @@ class e_admin_log
|
||||
if($append == true)
|
||||
{
|
||||
$app = FILE_APPEND;
|
||||
if(!file_exists($fileName))
|
||||
{
|
||||
$text = $head . $text;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$app = null;
|
||||
$text = $head . $text;
|
||||
}
|
||||
|
||||
if(file_put_contents($fileName, $text, $app))
|
||||
|
Loading…
x
Reference in New Issue
Block a user