|
@@ 627-631 (lines=5) @@
|
| 624 |
|
$dates['m_end'] = 12; |
| 625 |
|
$dates['year'] = date( 'Y', $current_time ) - 1; |
| 626 |
|
$dates['year_end'] = date( 'Y', $current_time ) - 1; |
| 627 |
|
} else { |
| 628 |
|
$dates['m_start'] = date( 'n' ) - 1; |
| 629 |
|
$dates['m_end'] = date( 'n' ) - 1; |
| 630 |
|
$dates['year_end'] = $dates['year']; |
| 631 |
|
} |
| 632 |
|
$dates['day_end'] = cal_days_in_month( CAL_GREGORIAN, $dates['m_end'], $dates['year'] ); |
| 633 |
|
break; |
| 634 |
|
|
|
@@ 690-693 (lines=4) @@
|
| 687 |
|
if ( date( 'j', $current_time ) <= 7 ) { |
| 688 |
|
$dates['m_start'] = date( 'n', $current_time ) - 1; |
| 689 |
|
$dates['m_end'] = date( 'n', $current_time ) - 1; |
| 690 |
|
if ( $dates['m_start'] <= 1 ) { |
| 691 |
|
$dates['year'] = date( 'Y', $current_time ) - 1; |
| 692 |
|
$dates['year_end'] = date( 'Y', $current_time ) - 1; |
| 693 |
|
} |
| 694 |
|
} else { |
| 695 |
|
$dates['m_start'] = date( 'n', $current_time ); |
| 696 |
|
$dates['m_end'] = date( 'n', $current_time ); |