Fixed thumbnail generating

This commit is contained in:
Marcin Kurczewski 2013-10-23 22:16:08 +02:00
parent e1acb8bd99
commit b5070e06fe

View file

@ -566,7 +566,7 @@ class PostController
$path = $this->config->main->thumbsPath . DS . $name;
if (!file_exists($path))
{
$post = Model_Post::locate($id);
$post = Model_Post::locate($name);
PrivilegesHelper::confirmWithException(Privilege::ViewPost);
PrivilegesHelper::confirmWithException(Privilege::ViewPost, PostSafety::toString($post->safety));