diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-08-27 04:14:41 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-08-27 04:14:41 +0000 |
commit | a18e304e39a085c91b97c06ecb82f76ec37a0bc4 (patch) | |
tree | 2120af62d5730d23416d2545faf8af1d9eba51d1 | |
parent | d0bbfeefbe9852065b16d7b085656ff38468f0f3 (diff) | |
download | ikiwiki-a18e304e39a085c91b97c06ecb82f76ec37a0bc4.tar ikiwiki-a18e304e39a085c91b97c06ecb82f76ec37a0bc4.tar.gz |
important robustness fix
-rw-r--r-- | IkiWiki/Plugin/ddate.pm | 3 |
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; } #}}} |