Changeset 1162 for branches/branch-1_6
- Timestamp:
- Apr 14, 2006, 3:41:50 AM (19 years ago)
- Location:
- branches/branch-1_6/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1_6/include/calendar_base.class.php
r1107 r1162 196 196 } 197 197 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 ) 199 200 { 200 201 $label = l10n('calendar_any'); … … 300 301 for ($i=0; $i<count($page['chronology_date']); $i++) 301 302 { 302 if ( 'any' === $page['chronology_date'] )303 if ( 'any' === $page['chronology_date'][$i] ) 303 304 { 304 305 $query .= ','.'"any"'; -
branches/branch-1_6/include/functions_calendar.inc.php
r1125 r1162 260 260 else 261 261 { 262 if ( count($page['chronology_date'])==0 263 or in_array('any', $page['chronology_date']) ) 264 {// selected period is very big so we show newest first 265 $order = ' DESC, '; 266 } 267 else 268 {// selected period is small (month,week) so we show oldest first 269 $order = ' ASC, '; 270 } 262 271 $order_by = str_replace( 263 272 'ORDER BY ', 264 'ORDER BY '.$calendar->date_field. ' DESC,', $conf['order_by']273 'ORDER BY '.$calendar->date_field.$order, $conf['order_by'] 265 274 ); 266 275 $query .= '
Note: See TracChangeset
for help on using the changeset viewer.