Fix thumbnails disabling if PHP GD is not installed

This commit is contained in:
ArthurHoaro 2019-02-09 13:05:37 +01:00
parent 905f8675a7
commit 5bd62b5d53

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(