Merge pull request 'Use the {hubBaseurl} variable for this' (#28) from I27_calendar.php_not_redirecting_to_the_correct_page into main

Reviewed-on: #28
This commit is contained in:
Ken Fallon 2024-01-01 15:30:15 +00:00
commit 9becc2646a

View File

@ -301,7 +301,7 @@ for ( $slot = $current_episode_number; $slot < ( $current_episode_number + 60 );
$sizeof_show_array--; $sizeof_show_array--;
} }
elseif ( empty( $show_array[$slot] ) ) { elseif ( empty( $show_array[$slot] ) ) {
echo "<span style=\"font-family:monospace;\">${this_episode_date}: <a aria-label=\"Upload to the slot hpr${slot}\" href=\"/request.php?id=${slot}\">hpr${slot}</span> is available - upload now</a>.<br />\n"; echo "<span style=\"font-family:monospace;\">${this_episode_date}: <a aria-label=\"Upload to the slot hpr${slot}\" href=\"${hubBaseurl}/request.php?id=${slot}\">hpr${slot}</span> is available - upload now</a>.<br />\n";
} }
elseif ( $show_array[$slot]["valid"] == 0 ) { elseif ( $show_array[$slot]["valid"] == 0 ) {
echo "<span style=\"font-family:monospace;\">${this_episode_date}: hpr${slot}</span> <strong>Unavailable</strong>.<br />\n"; echo "<span style=\"font-family:monospace;\">${this_episode_date}: hpr${slot}</span> <strong>Unavailable</strong>.<br />\n";
@ -337,7 +337,7 @@ while ( $slot <= $max_episode_number) {
<h3>Pick other dates</h3> <h3>Pick other dates</h3>
<p> <p>
If you wish to pick an available slot in the next 12 months then go directly to the <a aria-label="Go to the request page" href="/request.php">request page</a>. If you wish to pick an available slot in the next 12 months then go directly to the <a aria-label="Go to the request page" href="<?php echo "${hubBaseurl}"; ?>request.php">request page</a>.
</p> </p>
</main> </main>