Use thumb, not thumb_path

This commit is contained in:
Pietro Carrara 2021-07-04 15:05:06 -03:00
parent 293590a426
commit 6d9867f5b4
1 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ class Api {
}
// Pick the correct thumbnail
if ($file->thumb_path === 'file') {
if ($file->thumb === 'file') {
$ext = $file->extension;
$thumbFile = $config['file_icons']['default'];
if (isset($config['file_icons'][$ext])) {
@ -116,7 +116,7 @@ class Api {
$apiPost['thumb_path'] = sprintf($config['file_thumb'], $thumbFile);
} else {
$apiPost['thumb_path'] = $file->thumb_path;
$apiPost['thumb_path'] = $config['uri_thumb'] . $file->thumb;
}
}