You need to sign in before continuing.

Commit 5591567b9d51ca4c0d31e054bb8fd69f83cf1781

Authored by michael
1 parent 5302c5e6

create log directory using default umask


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1673 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 2 additions and 1 deletions
lib/Log.inc
... ... @@ -52,8 +52,9 @@ class Log {
52 52 * Creates the log file from the current datetime
53 53 */
54 54 function initialiseLogFile() {
  55 + global $default;
55 56 if (!file_exists($this->logDirectory)) {
56   - mkdir($this->logDirectory, "0700");
  57 + mkdir($this->logDirectory, $default->uMask);
57 58 }
58 59  
59 60 $this->logFile = $this->logDirectory . "/log-" . date("d-m-Y") . ".txt";
... ...