Fixed thumbnail generating
This commit is contained in:
parent
e1acb8bd99
commit
b5070e06fe
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue