]> sipb.mit.edu Git - ikiwiki.git/commitdiff
inline: Allow MTIME to be used in inlinepage.tmpl.
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 14 Oct 2008 19:00:46 +0000 (15:00 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 14 Oct 2008 19:00:46 +0000 (15:00 -0400)
IkiWiki/Plugin/inline.pm
debian/changelog
doc/bugs/MTIME_not_set_for_inline_or_archive_entries.mdwn

index 5d2ef5681b3d6ab84f16932f8e5efdbc030345a3..037c206184a619fddae6058cc19ab112286690b3 100644 (file)
@@ -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];
        
index c38f44d79bd7738acacb12a5d1e5fa72f28e3670..f5156a667e3681a06a30088bbfcbb970cf8dfa07 100644 (file)
@@ -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
 
index 58579ac353f2411de3082b364aeb1ab1525d0de0..89947b544e9f7c86e690b940bf3ebcae642260c2 100644 (file)
@@ -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