wip
This commit is contained in:
parent
5241eaa11b
commit
eb0d72ffc8
|
@ -258,7 +258,7 @@
|
|||
@foreach($logDirs as $d)
|
||||
<li @if($d === $fileName) class="active" @endif>
|
||||
<a class="dir" href="{{ route('dcat-log-viewer', ['dir' => $d]) }}">
|
||||
<i class="fa fa-folder-o"></i>{{ $d }}
|
||||
<i class="fa fa-folder-o"></i>{{ basename($d) }}
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
|
|
|
@ -158,10 +158,10 @@ class LogViewer
|
|||
}
|
||||
|
||||
$files = glob($this->mergeDirectory().'/*.*');
|
||||
$files = array_combine($files, array_map('filemtime', $files));
|
||||
arsort($files);
|
||||
//$files = array_combine($files, array_map('filemtime', $files));
|
||||
rsort($files);
|
||||
|
||||
return array_map('basename', array_keys($files));
|
||||
return array_map('basename', $files);
|
||||
}
|
||||
|
||||
public function getLogDirectories()
|
||||
|
|
Loading…
Reference in New Issue
Block a user