From aef615e0b4cbff0881097ed95e8e5a20eba8db65 Mon Sep 17 00:00:00 2001 From: Nikolai Kristiansen Date: Tue, 29 Jul 2014 17:32:37 +0200 Subject: [PATCH] Log fix --- inside/migration/ldap_api_functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inside/migration/ldap_api_functions.php b/inside/migration/ldap_api_functions.php index 6dc3608..92d0346 100644 --- a/inside/migration/ldap_api_functions.php +++ b/inside/migration/ldap_api_functions.php @@ -56,8 +56,8 @@ function ldap_add_user($username, $firstname, $lastname, $email, $password, $gro } function _log($str) { $time = date("[Y-m-d H:i:s.u]"); - file_put_contents("migration.log", $time . - $str . "\n", FILE_APPEND); + // relative to the file _log is in + file_put_contents(dirname(__FILE__)."/migration.log", $time.$str."\n", FILE_APPEND); }