From: ArthurHoaro Date: Sat, 9 Feb 2019 12:05:37 +0000 (+0100) Subject: Fix thumbnails disabling if PHP GD is not installed X-Git-Tag: v0.11.0~34^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=5bd62b5d538a5e375bebbcdea0ffef3384143895;p=github%2Fshaarli%2FShaarli.git Fix thumbnails disabling if PHP GD is not installed --- 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 $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(