X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/de805e0f39886673e56d5702a5609c09099600e4..f621761b0cf761904e875bc0d2f84a9d38e47ddc:/doc/bugs/MTIME_not_set_for_inline_or_archive_entries.mdwn?ds=sidebyside
diff --git a/doc/bugs/MTIME_not_set_for_inline_or_archive_entries.mdwn b/doc/bugs/MTIME_not_set_for_inline_or_archive_entries.mdwn
index 6596936fa..89947b544 100644
--- a/doc/bugs/MTIME_not_set_for_inline_or_archive_entries.mdwn
+++ b/doc/bugs/MTIME_not_set_for_inline_or_archive_entries.mdwn
@@ -5,3 +5,18 @@ My page.tmpl
can contain:
and that works. However, if I have the same line in inlinepage.tmpl
or archivepage.tmpl
, then only the CTIME
works - the MTIME
is blank.
This leads to an annoying inconsistency.
+
+Update - even though I'm not a Perl programmer, this patch seems right:
+
+ --- /home/bothner/ikiwiki/ikiwiki/IkiWiki/Plugin/inline.pm 2008-10-01 14:29:11.000000000 -0700
+ +++ ./inline.pm 2008-10-12 13:26:11.000000000 -0700
+ @@ -316,6 +316,7 @@
+ $template->param(pageurl => urlto(bestlink($params{page}, $page), $params{destpage}));
+ $template->param(title => pagetitle(basename($page)));
+ $template->param(ctime => displaytime($pagectime{$page}, $params{timeformat}));
+ + $template->param(mtime => displaytime($pagemtime{$page}, $params{timeformat}));
+ $template->param(first => 1) if $page eq $list[0];
+ $template->param(last => 1) if $page eq $list[$#list];
+
+
+> [[done]], thanks