Ignore:
Timestamp:
Apr 14, 2006, 3:41:50 AM (19 years ago)
Author:
rvelices
Message:

fix: calendar prev/next links not working properly when 'any' (All/Tout)
was selected

fix: calendar 'any' (All/Tout) not shown on for the day selection
(last calendar level) - it was meaningless

fix: calendar image ordering is by date descending for large periods (no year
selected) or ascending for small periods (week,month...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_6/include/calendar_base.class.php

    r1107 r1162  
    196196    }
    197197
    198     if ($conf['calendar_show_any'] and $show_any and count($items) > 1)
     198    if ($conf['calendar_show_any'] and $show_any and count($items)>1 and
     199          count($date_components)<count($this->calendar_levels)-1 )
    199200    {
    200201      $label = l10n('calendar_any');
     
    300301    for ($i=0; $i<count($page['chronology_date']); $i++)
    301302    {
    302       if ( 'any' === $page['chronology_date'] )
     303      if ( 'any' === $page['chronology_date'][$i] )
    303304      {
    304305        $query .= ','.'"any"';
Note: See TracChangeset for help on using the changeset viewer.