diff options
author | Simon McVittie <smcv@debian.org> | 2014-09-01 08:56:46 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2014-09-01 08:58:12 +0100 |
commit | 6806ddfdff5e17ec85683d38bad814a46ffa4efe (patch) | |
tree | 5041ab142db7f3261a946f2678e7b86e43c18bf8 /IkiWiki | |
parent | 9adee0a222277733dd98bc433ef240e25e438242 (diff) | |
download | ikiwiki-6806ddfdff5e17ec85683d38bad814a46ffa4efe.tar ikiwiki-6806ddfdff5e17ec85683d38bad814a46ffa4efe.tar.gz |
Only provide time, not formatted_time, to edittemplate templates
I'm not sure what the use-case is for formatted_time, and chrysn
pointed out that for display in HTML, [[!date "<TMPL_VAR time>"]]
would be nicer.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/edittemplate.pm | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/edittemplate.pm b/IkiWiki/Plugin/edittemplate.pm index c61f6336b..947c8f215 100644 --- a/IkiWiki/Plugin/edittemplate.pm +++ b/IkiWiki/Plugin/edittemplate.pm @@ -157,7 +157,6 @@ sub filltemplate ($$) { my $time = time(); $template->param(time => IkiWiki::formattime($time, "%Y-%m-%d %H:%M:%S")); - $template->param(formatted_time => IkiWiki::formattime($time)); return $template->output; } |