From: joey Date: Sun, 27 Aug 2006 04:14:41 +0000 (+0000) Subject: important robustness fix X-Git-Tag: 1.22~46 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/a18e304e39a085c91b97c06ecb82f76ec37a0bc4?ds=sidebyside;hp=d0bbfeefbe9852065b16d7b085656ff38468f0f3 important robustness fix --- diff --git a/IkiWiki/Plugin/ddate.pm b/IkiWiki/Plugin/ddate.pm index 3bd6c6f73..4e9d919a3 100644 --- a/IkiWiki/Plugin/ddate.pm +++ b/IkiWiki/Plugin/ddate.pm @@ -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; } #}}}