Skip to content

Commit

Permalink
Use same _GET variable as filter
Browse files Browse the repository at this point in the history
  • Loading branch information
trymebytes committed Nov 28, 2024
1 parent 7c40b21 commit 9b2e8b8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@

$current_events_data = array(
'event_ids' => $current_events_query['event_ids'] ?? array(),
'filter_by' => 'current',
'filter_by' => 'current_events_paged',
'next_page' => ( $current_events_query['page_count'] >= $current_events_query['current_page'] + 1 ) ? $current_events_query['current_page'] + 1 : 0,
);

$upcoming_events_data = array(
'event_ids' => $upcoming_events_query['event_ids'] ?? array(),
'filter_by' => 'upcoming',
'filter_by' => 'upcoming_events_paged',
'next_page' => ( $upcoming_events_query['page_count'] >= $upcoming_events_query['current_page'] + 1 ) ? $upcoming_events_query['current_page'] + 1 : 0,

);

$past_events_data = array(
'event_ids' => $attributes['past_events_query']['event_ids'] ?? array(),
'filter_by' => 'past',
'filter_by' => 'past_events_paged',
'next_page' => ( $past_events_query['page_count'] >= $past_events_query['current_page'] + 1 ) ? $past_events_query['current_page'] + 1 : 0,

);
Expand Down

0 comments on commit 9b2e8b8

Please sign in to comment.