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

Susurrus’s picture

Status: Active » Needs review

Okay, this looks correct to me. Once I test it, it'll get in.

Susurrus’s picture

Status: Needs review » Fixed

Thanks for this. Committed.

It would be nice in the future, however, if you attached a patch versus just attaching code.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.