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]
dbPath=./db.sqlite
filesPath=./files/
thumbsPath=./files/
thumbsPath=./thumbs/
mediaPath=./public_html/media/
title=szurubooru

View file

@ -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;