aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/Thumbnailer.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-06-27 12:08:26 +0200
committerArthurHoaro <arthur@hoa.ro>2020-07-23 21:19:21 +0200
commit6132d64748dfc6806ed25f71d2e078a5ed29d071 (patch)
tree0b6bdaf5106d7c27daff0cfb2c541dba362e9d1e /application/Thumbnailer.php
parent764d34a7d347d653414e5f5c632e02499edaef04 (diff)
downloadShaarli-6132d64748dfc6806ed25f71d2e078a5ed29d071.tar.gz
Shaarli-6132d64748dfc6806ed25f71d2e078a5ed29d071.tar.zst
Shaarli-6132d64748dfc6806ed25f71d2e078a5ed29d071.zip
Process thumbnail synchronize page through Slim controllers
Diffstat (limited to 'application/Thumbnailer.php')
-rw-r--r--application/Thumbnailer.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/application/Thumbnailer.php b/application/Thumbnailer.php
index 314baf0d..5aec23c8 100644
--- a/application/Thumbnailer.php
+++ b/application/Thumbnailer.php
@@ -4,7 +4,6 @@ namespace Shaarli;
4 4
5use Shaarli\Config\ConfigManager; 5use Shaarli\Config\ConfigManager;
6use WebThumbnailer\Application\ConfigManager as WTConfigManager; 6use WebThumbnailer\Application\ConfigManager as WTConfigManager;
7use WebThumbnailer\Exception\WebThumbnailerException;
8use WebThumbnailer\WebThumbnailer; 7use WebThumbnailer\WebThumbnailer;
9 8
10/** 9/**
@@ -90,7 +89,7 @@ class Thumbnailer
90 89
91 try { 90 try {
92 return $this->wt->thumbnail($url); 91 return $this->wt->thumbnail($url);
93 } catch (WebThumbnailerException $e) { 92 } catch (\Throwable $e) {
94 // Exceptions are only thrown in debug mode. 93 // Exceptions are only thrown in debug mode.
95 error_log(get_class($e) . ': ' . $e->getMessage()); 94 error_log(get_class($e) . ': ' . $e->getMessage());
96 } 95 }