diff --git a/config.ini b/config.ini index 2a72a763..9d98d65a 100644 --- a/config.ini +++ b/config.ini @@ -5,7 +5,7 @@ prettyPrint=1 [main] dbPath=./db.sqlite filesPath=./files/ -thumbsPath=./files/ +thumbsPath=./thumbs/ mediaPath=./public_html/media/ title=szurubooru diff --git a/src/Controllers/PostController.php b/src/Controllers/PostController.php index 32d6ef8c..295ac772 100644 --- a/src/Controllers/PostController.php +++ b/src/Controllers/PostController.php @@ -232,7 +232,7 @@ class PostController $path = $this->config->main->thumbsPath . DS . $post->name . '.png'; if (!file_exists($path)) { - $srcPath = $this->config->main->thumbsPath . DS . $post->name; + $srcPath = $this->config->main->filesPath . DS . $post->name; $dstPath = $path; $dstWidth = $this->config->browsing->thumbWidth; $dstHeight = $this->config->browsing->thumbHeight;