From 752cbbd016dd974fa00763bb04854eed82110761 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sun, 26 Jan 2014 13:35:47 +0100 Subject: [PATCH] Fixed undefined method --- src/Controllers/PostController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controllers/PostController.php b/src/Controllers/PostController.php index de9c6961..ee7e93ad 100644 --- a/src/Controllers/PostController.php +++ b/src/Controllers/PostController.php @@ -450,8 +450,8 @@ class PostController catch (Exception $e) { $this->context->transport->lastSearchQuery = ''; - $prevPost = current(PostModel::getEntities('prev:' . $id, 1, 1)); - $nextPost = current(PostModel::getEntities('next:' . $id, 1, 1)); + $prevPost = current(PostSearchService::getEntities('prev:' . $id, 1, 1)); + $nextPost = current(PostSearchService::getEntities('next:' . $id, 1, 1)); } PostSearchService::enableTokenLimit(true);