fix(public) better structure
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
foreach ($favoriteStops as $stop) {
|
||||
$stop_name = getStopName($stop['stopId']);
|
||||
include 'components/homepage/stop.php';
|
||||
include 'stop.php';
|
||||
if (count($favoriteStops) > 1) {
|
||||
echo '<hr class="mt-4">';
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ $lineIds = $query->fetchAll(PDO::FETCH_COLUMN);
|
||||
|
||||
<?php
|
||||
foreach ($lineIds as $lineId) {
|
||||
include 'components/homepage/line.php';
|
||||
include 'line.php';
|
||||
}
|
||||
|
||||
if (empty($lineIds)) {
|
||||
@@ -55,7 +55,7 @@ function removeFavorite(stopId, lineId) {
|
||||
formData.append('lineId', lineId);
|
||||
formData.append('action', 'remove');
|
||||
|
||||
fetch('/endpoints/updateFavorite.php', {
|
||||
fetch('/updateFavorite.php', {
|
||||
method: 'POST',
|
||||
body: formData
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user