Fixed issue #24

Fixed issue with audit logs going into wrong location
This commit is contained in:
Andy Dixon
2024-10-09 20:27:23 +01:00
parent 081401b9ef
commit 76f96f9200
2 changed files with 19 additions and 23 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ class neoCMSCore
public function writeAudit($value)
{
if ($this->auditEnabled)
file_put_contents(__DIR__ . "/" . date('y-m-d-') . "audit.txt", date('Y-m-d H:i:s') . "\t" . $this->loggedInUser . "\t" . trim($value) . "\n", FILE_APPEND);
file_put_contents(__DIR__ . "/logs/" . date('y-m-d-') . "audit.txt", date('Y-m-d H:i:s') . "\t" . $this->loggedInUser . "\t" . trim($value) . "\n", FILE_APPEND);
}
public function isLoggedIn()