From: Joey Hess Date: Tue, 14 Oct 2008 19:00:46 +0000 (-0400) Subject: inline: Allow MTIME to be used in inlinepage.tmpl. X-Git-Tag: 2.67~29 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c39112e6effa8a4057cc6350c0be46f3363c259a;p=ikiwiki.git inline: Allow MTIME to be used in inlinepage.tmpl. --- diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 5d2ef5681..037c20618 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -316,6 +316,7 @@ sub preprocess_inline (@) { #{{{ $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]; diff --git a/debian/changelog b/debian/changelog index c38f44d79..f5156a667 100644 --- a/debian/changelog +++ b/debian/changelog @@ -10,6 +10,7 @@ ikiwiki (2.67) UNRELEASED; urgency=low * google: Plugin provides google site search, contributed by Peter Simons. * Pass HTTPS variable through the wrapper so that CGI->https can be used by plugins. Closes: #502047 + * inline: Allow MTIME to be used in inlinepage.tmpl. -- Joey Hess Mon, 06 Oct 2008 16:07:50 -0400 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 58579ac35..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 @@ -17,3 +17,6 @@ Update - even though I'm not a Perl programmer, this patch seems right: + $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