From d8832cd795b2e838ee3345a846a398fb923fc8e2 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Sun, 16 Mar 2008 14:45:20 +0000 Subject: [PATCH] fixed the shi**y calendar widget --- fp-plugins/calendar/plugin.calendar.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fp-plugins/calendar/plugin.calendar.php b/fp-plugins/calendar/plugin.calendar.php index 0d3d1e5..9b8778a 100755 --- a/fp-plugins/calendar/plugin.calendar.php +++ b/fp-plugins/calendar/plugin.calendar.php @@ -31,10 +31,10 @@ function generate_calendar($year, $month, $days = array(), $day_name_length = 3, #Begin calendar. Uses a real . See http://diveintomark.org/archives/2002/07/03 @list($p, $pl) = each($pn); @list($n, $nl) = each($pn); #previous and next links, if applicable - if($p) $p = ''.($pl ? ''.$p.'' : $p).' '; - if($n) $n = ' '.($nl ? ''.$n.'' : $n).''; + if($p) $p = ''.($pl ? ''.$p.'' : $p).' '; + if($n) $n = ' '.($nl ? ''.$n.'' : $n).''; $calendar = ''."\n". - '\n"; + '\n"; if($day_name_length){ #if the day names should be shown ($day_name_length > 0) #if day_name_length is >3, the full name of the day will be printed @@ -53,7 +53,7 @@ function generate_calendar($year, $month, $days = array(), $day_name_length = 3, @list($link, $classes, $content) = $days[$day]; if(is_null($content)) $content = $day; $calendar .= '' : '>'). - ($link ? ''.$content.'' : $content).''; + ($link ? ''.$content.'' : $content).''; } else $calendar .= ""; }
'.$p.($month_href ? ''.$title.'' : $title).$n."
'.$p.($month_href ? ''.$title.'' : $title).$n."
$day