]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/MTIME_not_set_for_inline_or_archive_entries.mdwn
clarify which map I mena
[ikiwiki.git] / doc / bugs / MTIME_not_set_for_inline_or_archive_entries.mdwn
1 My <code>page.tmpl</code> can contain:
2
3     Created <TMPL_VAR CTIME>.  Last edited <TMPL_VAR MTIME>.
4  
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.
8
9 Update - even though I'm not a Perl programmer, this patch seems right:
10
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
13     @@ -316,6 +316,7 @@
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];  
20
21
22 > [[done]], thanks