Fixed stupid bug

This commit is contained in:
Marcin Kurczewski 2013-10-09 23:46:22 +02:00
parent 17f040c9fa
commit 30b2d83704
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ prettyPrint=1
[main] [main]
dbPath=./db.sqlite dbPath=./db.sqlite
filesPath=./files/ filesPath=./files/
thumbsPath=./files/ thumbsPath=./thumbs/
mediaPath=./public_html/media/ mediaPath=./public_html/media/
title=szurubooru title=szurubooru

View file

@ -232,7 +232,7 @@ class PostController
$path = $this->config->main->thumbsPath . DS . $post->name . '.png'; $path = $this->config->main->thumbsPath . DS . $post->name . '.png';
if (!file_exists($path)) if (!file_exists($path))
{ {
$srcPath = $this->config->main->thumbsPath . DS . $post->name; $srcPath = $this->config->main->filesPath . DS . $post->name;
$dstPath = $path; $dstPath = $path;
$dstWidth = $this->config->browsing->thumbWidth; $dstWidth = $this->config->browsing->thumbWidth;
$dstHeight = $this->config->browsing->thumbHeight; $dstHeight = $this->config->browsing->thumbHeight;