aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/photos_add_direct_process.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/include/photos_add_direct_process.inc.php')
-rw-r--r--admin/include/photos_add_direct_process.inc.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/admin/include/photos_add_direct_process.inc.php b/admin/include/photos_add_direct_process.inc.php
index c0cb3e4c0..03900747e 100644
--- a/admin/include/photos_add_direct_process.inc.php
+++ b/admin/include/photos_add_direct_process.inc.php
@@ -202,12 +202,7 @@ SELECT
$thumbnail['file'] = $image_infos['file'];
- $thumbnail['src'] = get_thumbnail_location(
- array(
- 'path' => $image_infos['path'],
- 'tn_ext' => $image_infos['tn_ext'],
- )
- );
+ $thumbnail['src'] = DerivativeImage::thumb_url($image_infos);
// TODO: when implementing this plugin in Piwigo core, we should have
// a function get_image_name($name, $file) (if name is null, then