From 30b2d83704823989640231f3c860b3a95a2246b8 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Wed, 9 Oct 2013 23:46:22 +0200 Subject: [PATCH] Fixed stupid bug --- config.ini | 2 +- src/Controllers/PostController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;