mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Added option to change the DATA_PATH via CLI argument data-path=<directory>
This commit is contained in:
parent
c60e15a682
commit
a3e141672a
6 changed files with 34 additions and 33 deletions
|
|
@ -225,7 +225,7 @@ function logg($message, $name, $EOL = true, $level = 2, $close = false){
|
|||
$fpointers = array();
|
||||
}
|
||||
if(!isset($fpointers[$name]) or $fpointers[$name] === false){
|
||||
$fpointers[$name] = @fopen(FILE_PATH."logs/".$name.".log", "ab");
|
||||
$fpointers[$name] = @fopen(DATA_PATH."logs/".$name.".log", "ab");
|
||||
}
|
||||
@fwrite($fpointers[$name], $message);
|
||||
if($close === true){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue