From 06c3d1a57a2842a5360dc2feb00af3098142b4d7 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 10 Aug 2012 03:22:20 -0400 Subject: Fix IS_INDEX logic in template. --- (limited to 'scripts/MarkdownBook') diff --git a/scripts/MarkdownBook/Book.pm b/scripts/MarkdownBook/Book.pm index f2d723a..fd43041 100644 --- a/scripts/MarkdownBook/Book.pm +++ b/scripts/MarkdownBook/Book.pm @@ -161,7 +161,7 @@ sub write_templated_documents foreach $doc (@{$self->{'docs'}}) { $doc_tmpl->param( - IS_INDEX => (ref($doc_tmpl) eq 'MarkdownBook::Document::Index')); + IS_INDEX => (ref($doc) eq 'MarkdownBook::Document::Index')); $doc_tmpl->param(BOOK_TITLE => $self->{'title'}); $doc_tmpl->param(TITLE => $doc->title()); -- cgit v0.9.1