Closed (fixed)
Project:
Archive
Version:
6.x-1.0
Component:
Block
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
30 Mar 2008 at 19:26 UTC
Updated:
12 May 2008 at 02:01 UTC
Current day:
for ($i = 1-$weekday;$i <= ceil(($weekday+$num_days)/7)*7;$i++) {
if ($i > 0) {
if (date('d', time()) == $i) {
$curr = 1;
}
else {
$curr = 0;
}
if (array_key_exists($i, $date->days)) {
if ($curr == 1) {
$days_row[] = array('data' => l($i, _archive_url('all', $year, $month, $i), array('attributes' => array('title' => format_plural($date->days[$i], '1 post', '@count posts')))), 'class' => 'current');
}
else {
$days_row[] = l($i, _archive_url('all', $year, $month, $i), array('attributes' => array('title' => format_plural($date->days[$i], '1 post', '@count posts'))));
}
}
else if ($i <= $num_days) {
if ($curr == 1) {
$days_row[] = array('data' => $i, 'class' => 'current');
}
else {
$days_row[] = $i;
}
}
else {
$days_row[] = '';
}
...
Title
Wrong (titles aren't displaying):
$days_row[] = array('data' => l($i, _archive_url(
'all', $year, $month, $i), array('title' => format_plural(
$date->days[$i], '1 post', '@count posts'))),
'class' => 'current');
Right (it's working):
$days_row[] = array('data' => l($i, _archive_url(
'all', $year, $month, $i), array('attributes' => array(
'title' => format_plural(
$date->days[$i], '1 post', '@count posts')))),
'class' => 'current');
Comments
Comment #1
Susurrus commentedOkay, this looks correct to me. Once I test it, it'll get in.
Comment #2
Susurrus commentedThanks for this. Committed.
It would be nice in the future, however, if you attached a patch versus just attaching code.
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.