From 6d9867f5b4564857ce823bfdaf471336809a7ee2 Mon Sep 17 00:00:00 2001 From: Pietro Carrara Date: Sun, 4 Jul 2021 15:05:06 -0300 Subject: [PATCH] Use thumb, not thumb_path --- inc/api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/api.php b/inc/api.php index 1c6552f6..63e292d9 100644 --- a/inc/api.php +++ b/inc/api.php @@ -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; } }