summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-08-10 03:22:20 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-08-10 03:22:20 (EDT)
commit06c3d1a57a2842a5360dc2feb00af3098142b4d7 (patch)
tree8862caa11be196be9a72c58b336ca1c2746bd709 /scripts
parentc0edd7e3b41aa0dcf511718079893a20bcd34127 (diff)
Fix IS_INDEX logic in template.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/MarkdownBook/Book.pm2
1 files changed, 1 insertions, 1 deletions
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());