diff --git a/lib.php b/lib.php index 1668ea4..7591210 100644 --- a/lib.php +++ b/lib.php @@ -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 [ @@ -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, @@ -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]; }