From a50263b379da4ddfefece7477fb6f29df657e0aa Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Sun, 28 Mar 2004 18:11:10 +0000 Subject: [PATCH] (Cal): Link to the date, not the day, when there are no matches. --- modules/calendar.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/calendar.pl b/modules/calendar.pl index be706934..b6db44e0 100644 --- a/modules/calendar.pl +++ b/modules/calendar.pl @@ -16,7 +16,7 @@ # 59 Temple Place, Suite 330 # Boston, MA 02111-1307 USA -$ModulesDescription .= '

$Id: calendar.pl,v 1.5 2004/03/28 02:22:44 as Exp $

'; +$ModulesDescription .= '

$Id: calendar.pl,v 1.6 2004/03/28 18:11:10 as Exp $

'; use vars qw($CalendarOnEveryPage); @@ -46,7 +46,7 @@ sub Cal { my @matches = grep(/^$date/, @pages); my $link; if (@matches == 0) { - $link = ScriptLink($day, $day, 'wanted' . $class); + $link = ScriptLink($date, $day, 'wanted' . $class); } elsif (@matches == 1) { $link = ScriptLink($matches[0], $day, 'exists exact' . $class); } else {