Skip to content

Commit 89049f9

Browse files
committed
remove php7 script "??" from views
1 parent 741622f commit 89049f9

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/traits/LfmHelpers.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@ public function getDirectories($path)
254254
if ($directory_name !== $thumb_folder_name) {
255255
$arr_dir[] = (object)[
256256
'name' => $directory_name,
257+
'url' => '',
258+
'size' => '',
257259
'updated' => filemtime($directory),
258260
'path' => $this->getInternalPath($directory),
259261
'time' => date("Y-m-d h:m", filemtime($directory)),
@@ -300,6 +302,7 @@ public function getFilesWithInfo($path)
300302
'url' => $this->getFileUrl($file_name),
301303
'size' => $this->humanFilesize(File::size($file)),
302304
'updated' => filemtime($file),
305+
'path' => '',
303306
'time' => date("Y-m-d h:m", filemtime($file)),
304307
'type' => $file_type,
305308
'icon' => $icon,

src/views/grid-view.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="col-xs-6 col-sm-4 col-md-3 col-lg-2 img-row">
77
<?php $item_name = $item->name; ?>
88
<?php $thumb_src = $item->thumb; ?>
9-
<?php $folder_path = $item->path ?? ''; ?>
9+
<?php $folder_path = $item->path; ?>
1010

1111
@if($item->is_file)
1212
<div class="thumbnail clickable" onclick="useFile('{{ $item_name }}')">

src/views/list-view.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
{{ str_limit($item->name, $limit = 20, $end = '...') }}
2121
</a>
2222
</td>
23-
<td>{{ $item->size ?? '' }}</td>
23+
<td>{{ $item->size }}</td>
2424
<td>{{ $item->type }}</td>
2525
<td>{{ $item->time }}</td>
2626
<td>

0 commit comments

Comments
 (0)