Skip to content

Commit

Permalink
Make sure log really works
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Sylvester committed Jun 25, 2020
1 parent 054c261 commit 630f56b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion resources/DirectoryLister.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class DirectoryLister {

// Define application version
const VERSION = '2.9.1';
const VERSION = '2.9.2';

// Reserve some variables
protected $_themeName = null;
Expand Down Expand Up @@ -72,6 +72,11 @@ public function __construct() {
$this->setSystemMessage('error', '<b>ERROR:</b> Unable to read log file');
} else {
touch($log);
if (file_exists($log) && is_writable($log)) {
$this->_logFile = $log;
} else {
$this->setSystemMessage('error', '<b>ERROR:</b> Unable to read/create log file');
}
}

if (filesize($log) <= 0) {
Expand Down

0 comments on commit 630f56b

Please sign in to comment.