aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/Thumbnailer.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2019-02-09 13:05:37 +0100
committerVirtualTam <virtualtam@flibidi.net>2019-04-15 23:51:06 +0200
commit0ed9396bfa12f086369b52cdc0742e3fe72273ec (patch)
tree1025fd7d06f796a89c49a37d1118632834907514 /application/Thumbnailer.php
parent1c03b65e2ea722b39e54b22c46014f35e34b575b (diff)
downloadShaarli-0ed9396bfa12f086369b52cdc0742e3fe72273ec.tar.gz
Shaarli-0ed9396bfa12f086369b52cdc0742e3fe72273ec.tar.zst
Shaarli-0ed9396bfa12f086369b52cdc0742e3fe72273ec.zip
Fix thumbnails disabling if PHP GD is not installed
Diffstat (limited to 'application/Thumbnailer.php')
-rw-r--r--application/Thumbnailer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/Thumbnailer.php b/application/Thumbnailer.php
index 37ed97a1..167d6296 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(