]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/Updater.php
Update thumbnail integration after rebasing the branch
[github/shaarli/Shaarli.git] / application / Updater.php
index dece2c020d297fdf13bf8773b76cb37895328025..6fbe3e000f6577d884a136cce911a05bdf424c4b 100644 (file)
@@ -480,7 +480,19 @@ class Updater
         }
 
         $this->conf->write($this->isLoggedIn);
+        return true;
+    }
 
+    /**
+     * * Move thumbnails management to WebThumbnailer, coming with new settings.
+     */
+    public function updateMethodWebThumbnailer()
+    {
+        $this->conf->set('thumbnails.enabled', $this->conf->get('thumbnail.enable_thumbnails', true));
+        $this->conf->set('thumbnails.width', 125);
+        $this->conf->set('thumbnails.height', 90);
+        $this->conf->remove('thumbnail');
+        $this->conf->write(true);
         return true;
     }
 }