Skip to content

Commit c161baa

Browse files
committed
ability to enable log from filemanager JSON config file
1 parent 28d32a2 commit c161baa

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

connectors/php/filemanager.class.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ public function __construct() {
4040
'Width'=>null,
4141
'Size'=>null
4242
);
43+
44+
// Log actions or not?
45+
if ($this->config['options']['logger'] == true ) {
46+
$this->enableLog();
47+
if(isset($this->config['options']['logfile'])) {
48+
$this->logfile = $this->config['options']['logfile'];
49+
}
50+
}
4351

4452
// if fileRoot is set manually, $this->doc_root takes fileRoot value
4553
// for security check in isValidPath() method

scripts/filemanager.config.js.default

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"dateFormat": "d M Y H:i",
1313
"fileRoot": false,
1414
"relPath": false,
15+
"logger": false,
1516
"plugins": []
1617
},
1718
"security": {

0 commit comments

Comments
 (0)