Merge pull request #1268 from ArthurHoaro/hotfix/thumb-gd-disable

Fix thumbnails disabling if PHP GD is not installed
This commit is contained in:
ArthurHoaro 2019-02-24 11:16:02 +01:00 committed by GitHub
commit c85b9758a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class Thumbnailer
$this->conf = $conf;
if (! $this->checkRequirements()) {
$this->conf->set('thumbnails.enabled', false);
$this->conf->set('thumbnails.mode', Thumbnailer::MODE_NONE);
$this->conf->write(true);
// TODO: create a proper error handling system able to catch exceptions...
die(t(