summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IkiWiki/Plugin/inline.pm1
-rw-r--r--debian/changelog1
-rw-r--r--doc/bugs/MTIME_not_set_for_inline_or_archive_entries.mdwn3
3 files changed, 5 insertions, 0 deletions
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 <joeyh@debian.org> 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