]> sipb.mit.edu Git - ikiwiki.git/commitdiff
important robustness fix
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sun, 27 Aug 2006 04:14:41 +0000 (04:14 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sun, 27 Aug 2006 04:14:41 +0000 (04:14 +0000)
IkiWiki/Plugin/ddate.pm

index 3bd6c6f73365bca9eb0719c5b15a0c133f7f7db7..4e9d919a3bd182f88227a650616de48b94a2cf25 100644 (file)
@@ -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;
         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;
 } #}}}
 
        return $date;
 } #}}}