diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2010-01-01 09:12:02 -0500 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2010-01-01 09:12:02 -0500 |
commit | 30ef1534d45b4bf14d59e78df79ee461431e208a (patch) | |
tree | b2a0a3b892f5a81c8d32ca89dd9da974d66d7fcb /pages/viewPost.php | |
parent | 69cf94fa48917f4bc1272ed85a34dd80558340e2 (diff) | |
download | fourisland-30ef1534d45b4bf14d59e78df79ee461431e208a.tar.gz fourisland-30ef1534d45b4bf14d59e78df79ee461431e208a.tar.bz2 fourisland-30ef1534d45b4bf14d59e78df79ee461431e208a.zip |
Fixed 2010 calendar bug
Because of a bug in the formula used to calculate the calendar color for each year, 2010 returned 0 instead of 4.
Diffstat (limited to 'pages/viewPost.php')
-rw-r--r-- | pages/viewPost.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pages/viewPost.php b/pages/viewPost.php index 5885bc9..0d84df7 100644 --- a/pages/viewPost.php +++ b/pages/viewPost.php | |||
@@ -36,7 +36,7 @@ if (!isAdmin()) | |||
36 | if ($getpost3['id'] == $_GET['id']) | 36 | if ($getpost3['id'] == $_GET['id']) |
37 | { | 37 | { |
38 | $template->add_ref(0, 'POST', array( 'ID' => $getpost3['id'], | 38 | $template->add_ref(0, 'POST', array( 'ID' => $getpost3['id'], |
39 | 'YEARID' => ((date('Y')-2006) % 4), | 39 | 'YEARID' => (((date('Y')-2007) % 4) + 1), |
40 | 'DATE' => date('F jS Y \a\\t g:i:s a'), | 40 | 'DATE' => date('F jS Y \a\\t g:i:s a'), |
41 | 'MONTH' => date('M'), | 41 | 'MONTH' => date('M'), |
42 | 'DAY' => date('d'), | 42 | 'DAY' => date('d'), |