diff options
author | ArthurHoaro <arthur@hoa.ro> | 2019-02-24 11:16:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-24 11:16:02 +0100 |
commit | c85b9758a6e64e6b95f1da758cd6f896a846e144 (patch) | |
tree | 4ac53c15da35332f20f3bc5e915694f2fdd21ac9 /application | |
parent | 3dc80d69abc481394862f2a3aeeee9c59f7dba37 (diff) | |
parent | 5bd62b5d538a5e375bebbcdea0ffef3384143895 (diff) | |
download | Shaarli-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.php | 2 |
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( |