Skip to content

Commit

Permalink
Changed root for local files to DOCUMENT_ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
mpbzh committed Apr 9, 2015
1 parent cd303bd commit dda4367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Syonix/LogViewer/LogFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct($name, $args) {
)));
break;
case 'local':
$this->filesystem = new Filesystem(new Local(APP_ROOT));
$this->filesystem = new Filesystem(new Local($_SERVER['DOCUMENT_ROOT']));
break;
default:
throw new \InvalidArgumentException("Invalid log file type: \"" . $this->args['type']."\"");
Expand Down

0 comments on commit dda4367

Please sign in to comment.