aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2019-02-09 13:05:37 +0100
committerArthurHoaro <arthur@hoa.ro>2019-02-09 13:05:37 +0100
commit5bd62b5d538a5e375bebbcdea0ffef3384143895 (patch)
tree36c0e1f3ceeb8afceecf6d1bae1b01d6de1b23f0
parent905f8675a728841b03b300d2c7dc909a1c4f7f03 (diff)
downloadShaarli-5bd62b5d538a5e375bebbcdea0ffef3384143895.tar.gz
Shaarli-5bd62b5d538a5e375bebbcdea0ffef3384143895.tar.zst
Shaarli-5bd62b5d538a5e375bebbcdea0ffef3384143895.zip
Fix thumbnails disabling if PHP GD is not installed
-rw-r--r--application/Thumbnailer.php2
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(