diff options
author | Jonas Kohl | 2024-10-19 10:29:47 +0200 |
---|---|---|
committer | Jonas Kohl | 2024-10-19 10:29:47 +0200 |
commit | 3280df23b93d6bbffbd5dfd648e01242c31f8389 (patch) | |
tree | 2ab00c00ca4ff3b671d406d064683c819a6f1411 /src/application/templates/bootstrap-3/search.twig | |
parent | 75d4836c38309acc2caaeacc227c6e9079dde924 (diff) |
Fix bugs
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 %} |