Skip to content

Commit

Permalink
fix(favicon) new icon
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmrval committed Jun 22, 2024
1 parent 9d36d93 commit db71adc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions components/homepage/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ function getStopName($stopId) {

return reset($result)['fields']['nom_zda'];
}

function getFavorites($lineId) {
global $conn;
try {
$query = $conn->prepare("SELECT stopId FROM favorites WHERE lineId = ? AND userId = ?");
$query->execute([$lineId, $_SESSION['user_id']]);
$query = $conn->prepare("SELECT stopId FROM favorites WHERE lineId = ?");
$query->execute([$lineId]);
$result = $query->fetchAll(PDO::FETCH_ASSOC);

return $result;
Expand Down
3 changes: 2 additions & 1 deletion components/structure/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Subway schedules</title>
<title>Subway</title>
<link rel="icon" href="assets/logo/favicon.png">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<?php
if (!isset($_SESSION['user_id'])) {
Expand Down
Binary file added public/assets/logo/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/assets/logo/purple.png
Binary file not shown.

0 comments on commit db71adc

Please sign in to comment.