]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/bugs/MTIME_not_set_for_inline_or_archive_entries.mdwn
solution?
[ikiwiki.git] / doc / bugs / MTIME_not_set_for_inline_or_archive_entries.mdwn
index 6596936fa94836a1487df3fdbc6e418d6afc6ae2..89947b544e9f7c86e690b940bf3ebcae642260c2 100644 (file)
@@ -5,3 +5,18 @@ 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];  
+
+
+> [[done]], thanks