Skip to content

Commit

Permalink
file_folder_icon
Browse files Browse the repository at this point in the history
  • Loading branch information
rdebleu committed Oct 14, 2023
1 parent de795ac commit 47ad85b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function get_listing($path = '.', $page = 1) {
'thumbnail_height' => 64,
'thumbnail_width' => 64,
'source' => $item['Key'],
'thumbnail' => $OUTPUT->image_url(file_extension_icon($pathinfo['basename'], 64))->out(false), ];
'thumbnail' => $OUTPUT->image_url(file_extension_icon($pathinfo['basename']))->out(false), ];
}
}
return [
Expand All @@ -114,7 +114,7 @@ public function get_listing($path = '.', $page = 1) {
*/
public function search($q, $page = 1) {
global $OUTPUT;
$diricon = $OUTPUT->image_url(file_folder_icon(64))->out(false);
$diricon = $OUTPUT->image_url(file_folder_icon())->out(false);
$bucket = $this->get_option('bucket_name');
$options = [
'Bucket' => $bucket,
Expand Down Expand Up @@ -155,7 +155,7 @@ public function search($q, $page = 1) {
'thumbnail_height' => 64,
'thumbnail_width' => 64,
'source' => $item['Key'],
'thumbnail' => $OUTPUT->image_url(file_extension_icon($pathinfo['basename'], 64))->out(false), ];
'thumbnail' => $OUTPUT->image_url(file_extension_icon($pathinfo['basename']))->out(false), ];
}
return ['list' => $files, 'dynload' => true, 'pages' => 0, 'page' => $page];
}
Expand Down

0 comments on commit 47ad85b

Please sign in to comment.