From a75305bf103568af904028d0bc63e35056f9bc9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjetil=20=C3=98rbekk?= Date: Sat, 4 Sep 2010 11:00:11 -0400 Subject: Fix quote numbers displayed on front page --- src/lq/Printer.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lq/Printer.java b/src/lq/Printer.java index beee449..14d08f9 100644 --- a/src/lq/Printer.java +++ b/src/lq/Printer.java @@ -11,9 +11,16 @@ public class Printer { } public void printQuote(Quote quote) { + printQuote(quote, null); + } + + public void printQuote(Quote quote, Long displayIndex) { + if (displayIndex == null) { + displayIndex = quote.getId(); + } out.println("
"); out.println("" + - "#" + quote.getId() + + "#" + displayIndex + ""+ ", lagt til av " + Strings.escape(quote.getAuthor()) + "
"); -- cgit v1.2.3