Fixed stupid bug
This commit is contained in:
parent
17f040c9fa
commit
30b2d83704
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue