From bc141b581ce2aaa2da642fb717d3904bd7dda591 Mon Sep 17 00:00:00 2001 From: Ludovico Fischer Date: Fri, 18 Nov 2011 11:04:22 +0100 Subject: [PATCH] [#1057] Tutorial: wrong latest comment displayed --- documentation/manual/guide3.textile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/manual/guide3.textile b/documentation/manual/guide3.textile index 0ad150a359..999fddedd9 100644 --- a/documentation/manual/guide3.textile +++ b/documentation/manual/guide3.textile @@ -91,7 +91,7 @@ bc. #{extends 'main.html' /} ${frontPost.comments.size() ?: 'no'} comment${frontPost.comments.size().pluralize()} #{if frontPost.comments} - , latest by ${frontPost.comments[0].author} + , latest by ${frontPost.comments[-1].author} #{/if} @@ -120,7 +120,7 @@ bc. #{extends 'main.html' /} ${oldPost.comments.size() ?: 'no'} comment${oldPost.comments.size().pluralize()} #{if oldPost.comments} - - latest by ${oldPost.comments[0].author} + - latest by ${oldPost.comments[-1].author} #{/if} @@ -164,7 +164,7 @@ bc. *{ Display a post in one of these modes: 'full', 'home' or 'teaser' }*  |  ${_post.comments.size() ?: 'no'} comment${_post.comments.size().pluralize()} #{if _post.comments} - , latest by ${_post.comments[0].author} + , latest by ${_post.comments[-1].author} #{/if} #{/if}