aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/MTIME_not_set_for_inline_or_archive_entries.mdwn
diff options
context:
space:
mode:
authorhttp://per.bothner.myopenid.com/ <http://per.bothner.myopenid.com/@web>2008-10-12 16:31:24 -0400
committerJoey Hess <joey@kitenet.net>2008-10-12 16:31:24 -0400
commita75a0dd1dc4f4c827a02375883614af7c68dae27 (patch)
tree83507cec0cc921c455adeacde06993b95d3a8b71 /doc/bugs/MTIME_not_set_for_inline_or_archive_entries.mdwn
parentde805e0f39886673e56d5702a5609c09099600e4 (diff)
downloadikiwiki-a75a0dd1dc4f4c827a02375883614af7c68dae27.tar
ikiwiki-a75a0dd1dc4f4c827a02375883614af7c68dae27.tar.gz
Suggested patch.
Diffstat (limited to 'doc/bugs/MTIME_not_set_for_inline_or_archive_entries.mdwn')
-rw-r--r--doc/bugs/MTIME_not_set_for_inline_or_archive_entries.mdwn12
1 files changed, 12 insertions, 0 deletions
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..58579ac35 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,15 @@ My <code>page.tmpl</code> can contain:
and that works. However, if I have the same line in <code>inlinepage.tmpl</code>
or <code>archivepage.tmpl</code>, then only the <code>CTIME</code> works - the <code>MTIME</code> 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];