Skip to content

Commit

Permalink
Fix bug introduced in recent commit when operating in multisite mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
campbell-m committed Oct 31, 2024
1 parent b4388c8 commit da9c625
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions web/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function get_adjacent_link(string $view, int $view_all, int $year, int $month, i
'area' => $area,
'room' => $room);

return 'index.php?' . http_build_query($vars, '', '&');
return multisite('index.php?' . http_build_query($vars, '', '&'));
}


Expand All @@ -210,7 +210,7 @@ function get_today_link(string $view, int $view_all, int $area, int $room) : str
'area' => $area,
'room' => $room);

return 'index.php?' . http_build_query($vars, '', '&');
return multisite('index.php?' . http_build_query($vars, '', '&'));
}


Expand Down Expand Up @@ -304,10 +304,6 @@ function get_arrow_nav(string $view, int $view_all, int $year, int $month, int $
$link_today = get_today_link($view, $view_all, $area, $room);
$link_next = get_adjacent_link($view, $view_all, $year, $month, $day, $area, $room, 1);

$link_prev = multisite($link_prev);
$link_today = multisite($link_today);
$link_next = multisite($link_next);

// For the day view we also offer buttons to go back/forward by one week.
// The links without any text have their content filled by CSS.
$html .= "<nav class=\"arrow\">\n";
Expand Down

0 comments on commit da9c625

Please sign in to comment.