summary refs log tree commit diff stats
path: root/pages/blog.php
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2010-01-01 09:12:02 -0500
committerStarla Insigna <hatkirby@fourisland.com>2010-01-01 09:12:02 -0500
commit30ef1534d45b4bf14d59e78df79ee461431e208a (patch)
treeb2a0a3b892f5a81c8d32ca89dd9da974d66d7fcb /pages/blog.php
parent69cf94fa48917f4bc1272ed85a34dd80558340e2 (diff)
downloadfourisland-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/blog.php')
-rwxr-xr-xpages/blog.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/blog.php b/pages/blog.php index 59af93d..1024ebb 100755 --- a/pages/blog.php +++ b/pages/blog.php
@@ -67,7 +67,7 @@ if (isset($_GET['post']))
67 } 67 }
68 68
69 $template->add_ref(0, 'POST', array( 'ID' => $getpost3['id'], 69 $template->add_ref(0, 'POST', array( 'ID' => $getpost3['id'],
70 'YEARID' => ((date('Y',strtotime($getpost3['pubDate']))-2006) % 4), 70 'YEARID' => (((date('Y',strtotime($getpost3['pubDate']))-2007) % 4) + 1),
71 'DATE' => date('F jS Y \a\\t g:i:s a',strtotime($getpost3['pubDate'])), 71 'DATE' => date('F jS Y \a\\t g:i:s a',strtotime($getpost3['pubDate'])),
72 'MONTH' => date('M',strtotime($getpost3['pubDate'])), 72 'MONTH' => date('M',strtotime($getpost3['pubDate'])),
73 'DAY' => date('d',strtotime($getpost3['pubDate'])), 73 'DAY' => date('d',strtotime($getpost3['pubDate'])),
@@ -166,7 +166,7 @@ if (isset($_GET['post']))
166 } 166 }
167 167
168 $template->add_ref($curID, 'POST', array( 'ID' => $getpost3['id'], 168 $template->add_ref($curID, 'POST', array( 'ID' => $getpost3['id'],
169 'YEARID' => ((date('Y',strtotime($getpost3['pubDate']))-2006) % 4), 169 'YEARID' => (((date('Y',strtotime($getpost3['pubDate']))-2007) % 4) + 1),
170 'DATE' => date('F jS Y \a\\t g:i:s a',strtotime($getpost3['pubDate'])), 170 'DATE' => date('F jS Y \a\\t g:i:s a',strtotime($getpost3['pubDate'])),
171 'MONTH' => date('M',strtotime($getpost3['pubDate'])), 171 'MONTH' => date('M',strtotime($getpost3['pubDate'])),
172 'DAY' => date('d',strtotime($getpost3['pubDate'])), 172 'DAY' => date('d',strtotime($getpost3['pubDate'])),