aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/ddate.pm
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-08-27 04:14:41 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-08-27 04:14:41 +0000
commita18e304e39a085c91b97c06ecb82f76ec37a0bc4 (patch)
tree2120af62d5730d23416d2545faf8af1d9eba51d1 /IkiWiki/Plugin/ddate.pm
parentd0bbfeefbe9852065b16d7b085656ff38468f0f3 (diff)
downloadikiwiki-a18e304e39a085c91b97c06ecb82f76ec37a0bc4.tar
ikiwiki-a18e304e39a085c91b97c06ecb82f76ec37a0bc4.tar.gz
important robustness fix
Diffstat (limited to 'IkiWiki/Plugin/ddate.pm')
-rw-r--r--IkiWiki/Plugin/ddate.pm3
1 files changed, 3 insertions, 0 deletions
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;
} #}}}