From a18e304e39a085c91b97c06ecb82f76ec37a0bc4 Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 27 Aug 2006 04:14:41 +0000 Subject: important robustness fix --- IkiWiki/Plugin/ddate.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'IkiWiki/Plugin') 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; } #}}} -- cgit v1.2.3