Fixed undefined method
This commit is contained in:
parent
37cc858821
commit
752cbbd016
1 changed files with 2 additions and 2 deletions
|
@ -450,8 +450,8 @@ class PostController
|
||||||
catch (Exception $e)
|
catch (Exception $e)
|
||||||
{
|
{
|
||||||
$this->context->transport->lastSearchQuery = '';
|
$this->context->transport->lastSearchQuery = '';
|
||||||
$prevPost = current(PostModel::getEntities('prev:' . $id, 1, 1));
|
$prevPost = current(PostSearchService::getEntities('prev:' . $id, 1, 1));
|
||||||
$nextPost = current(PostModel::getEntities('next:' . $id, 1, 1));
|
$nextPost = current(PostSearchService::getEntities('next:' . $id, 1, 1));
|
||||||
}
|
}
|
||||||
PostSearchService::enableTokenLimit(true);
|
PostSearchService::enableTokenLimit(true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue