From 0b59f270a432f8c7b6128981f0a39b4a2e2fbd34 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Tue, 13 May 2008 04:22:33 +0000 Subject: Some sweeping syntax changes for consistency: (! foo) changed to ( ! foo) || changed to OR changed newline standardization code in various places from preg_replace to str_replace --- system/plugins/js_calendar_pi.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'system/plugins/js_calendar_pi.php') diff --git a/system/plugins/js_calendar_pi.php b/system/plugins/js_calendar_pi.php index 6bb3b3629..964d50315 100644 --- a/system/plugins/js_calendar_pi.php +++ b/system/plugins/js_calendar_pi.php @@ -1,4 +1,4 @@ - 12) newMonth = 12; @@ -396,7 +396,7 @@ function update_calendar(id, dateValue) switch(newMonth - 1) { case 1: // Check for leap year - if ((newYear % 4 == 0 && newYear % 100 != 0) || newYear % 400 == 0) + if ((newYear % 4 == 0 && newYear % 100 != 0) OR newYear % 400 == 0) { if (newDay > 29) newDay = 29; } @@ -541,7 +541,7 @@ function change_month(mo, cal) switch(newMonth) { case 1: // Check for leap year - if ((newYear % 4 == 0 && newYear % 100 != 0) || newYear % 400 == 0) + if ((newYear % 4 == 0 && newYear % 100 != 0) OR newYear % 400 == 0) { if (newDate > 29) newDate = 29; } @@ -624,6 +624,6 @@ function js_calendar_write($field_id, $time = '', $highlight = TRUE) '; } - -/* End of file js_calendar_pi.php */ + +/* End of file js_calendar_pi.php */ /* Location: ./system/plugins/js_calendar_pi.php */ \ No newline at end of file -- cgit v1.2.3-24-g4f1b