X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/a61d531edbe89f7677e8a2b2f1b82b189782dcdf..a18e304e39a085c91b97c06ecb82f76ec37a0bc4:/IkiWiki/Plugin/ddate.pm diff --git a/IkiWiki/Plugin/ddate.pm b/IkiWiki/Plugin/ddate.pm index c8cf3f66e..4e9d919a3 100644 --- a/IkiWiki/Plugin/ddate.pm +++ b/IkiWiki/Plugin/ddate.pm @@ -2,7 +2,7 @@ # Discordian date support fnord ikiwiki. package IkiWiki::Plugin::ddate; use IkiWiki; -use IkiWiki::Render; # so we can redefine it here: +use IkiWiki::Render; # so we can redefine it here no warnings; sub import { #{{{ @@ -23,6 +23,9 @@ sub IkiWiki::displaytime ($) { #{{{ my $gregorian=POSIX::strftime("%d %m %Y", localtime($time)); my $date=`ddate +'$IkiWiki::config{timeformat}' $gregorian`; chomp $date; + if ($? || ! length $date) { + return "some time or other (hail Eris!)"; + } return $date; } #}}}