1 My <code>page.tmpl</code> can contain:
3 Created <TMPL_VAR CTIME>. Last edited <TMPL_VAR MTIME>.
5 and that works. However, if I have the same line in <code>inlinepage.tmpl</code>
6 or <code>archivepage.tmpl</code>, then only the <code>CTIME</code> works - the <code>MTIME</code> is blank.
7 This leads to an annoying inconsistency.
9 Update - even though I'm not a Perl programmer, this patch seems right:
11 --- /home/bothner/ikiwiki/ikiwiki/IkiWiki/Plugin/inline.pm 2008-10-01 14:29:11.000000000 -0700
12 +++ ./inline.pm 2008-10-12 13:26:11.000000000 -0700
14 $template->param(pageurl => urlto(bestlink($params{page}, $page), $params{destpage}));
15 $template->param(title => pagetitle(basename($page)));
16 $template->param(ctime => displaytime($pagectime{$page}, $params{timeformat}));
17 + $template->param(mtime => displaytime($pagemtime{$page}, $params{timeformat}));
18 $template->param(first => 1) if $page eq $list[0];
19 $template->param(last => 1) if $page eq $list[$#list];