From b5070e06fe76e38962515909e578df7dcc133b77 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Wed, 23 Oct 2013 22:16:08 +0200 Subject: [PATCH] Fixed thumbnail generating --- src/Controllers/PostController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controllers/PostController.php b/src/Controllers/PostController.php index 9656e5ed..2a310100 100644 --- a/src/Controllers/PostController.php +++ b/src/Controllers/PostController.php @@ -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));