diff options
Diffstat (limited to 'src/application/templates/bootstrap-3/search.twig')
-rw-r--r-- | src/application/templates/bootstrap-3/search.twig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/application/templates/bootstrap-3/search.twig b/src/application/templates/bootstrap-3/search.twig index c8f6315..66bd764 100644 --- a/src/application/templates/bootstrap-3/search.twig +++ b/src/application/templates/bootstrap-3/search.twig @@ -46,8 +46,8 @@ "author": '<em>' ~ (postAuthor ? postAuthor.displayName : __("unknown"))|e("html") ~ '</em>', "post_date": '<span class="_time">' ~ post.postDate.format("c")|e("html") ~ '</span>', "topic": '<em>' - ~ (topics[post.topicId].isLocked ? '<span class="fa fa-lock text-muted" aria-hidden="true"></span> ' : '') - ~ (topics[post.topicId] ? topics[post.topicId].title : null)|default("unknown")|e("html") ~ '</em>', + ~ (ctx.topics[post.topicId].isLocked ? '<span class="fa fa-lock text-muted" aria-hidden="true"></span> ' : '') + ~ (ctx.topics[post.topicId] ? ctx.topics[post.topicId].title : null)|default(__("unknown"))|e("html") ~ '</em>', }) }}</span> </a> {% endfor %} |