aboutsummaryrefslogtreecommitdiffhomepage
path: root/application
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2019-02-24 11:16:02 +0100
committerGitHub <noreply@github.com>2019-02-24 11:16:02 +0100
commitc85b9758a6e64e6b95f1da758cd6f896a846e144 (patch)
tree4ac53c15da35332f20f3bc5e915694f2fdd21ac9 /application
parent3dc80d69abc481394862f2a3aeeee9c59f7dba37 (diff)
parent5bd62b5d538a5e375bebbcdea0ffef3384143895 (diff)
downloadShaarli-c85b9758a6e64e6b95f1da758cd6f896a846e144.tar.gz
Shaarli-c85b9758a6e64e6b95f1da758cd6f896a846e144.tar.zst
Shaarli-c85b9758a6e64e6b95f1da758cd6f896a846e144.zip
Merge pull request #1268 from ArthurHoaro/hotfix/thumb-gd-disable
Fix thumbnails disabling if PHP GD is not installed
Diffstat (limited to 'application')
-rw-r--r--application/Thumbnailer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/Thumbnailer.php b/application/Thumbnailer.php
index a23f98e9..d5f5ac28 100644
--- a/application/Thumbnailer.php
+++ b/application/Thumbnailer.php
@@ -55,7 +55,7 @@ class Thumbnailer
55 $this->conf = $conf; 55 $this->conf = $conf;
56 56
57 if (! $this->checkRequirements()) { 57 if (! $this->checkRequirements()) {
58 $this->conf->set('thumbnails.enabled', false); 58 $this->conf->set('thumbnails.mode', Thumbnailer::MODE_NONE);
59 $this->conf->write(true); 59 $this->conf->write(true);
60 // TODO: create a proper error handling system able to catch exceptions... 60 // TODO: create a proper error handling system able to catch exceptions...
61 die(t( 61 die(t(