Skip to content

Commit

Permalink
🐛 Fix footer undefined lang array
Browse files Browse the repository at this point in the history
  • Loading branch information
NoaSecond committed May 27, 2024
1 parent 00a5683 commit 256f5fe
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/footer.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<?php
session_start();

//Language
$language = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
$deviceLang = substr($language, 0, 2);
$lang = isset($_SESSION['lang']) ? $_SESSION['lang'] : $deviceLang;
?>
<a href='www.noasecond.com'><?php getValueFromJson('copyright') ?></a>
<div>
<a href="personalDatas.php"><?php getValueFromJson('personalDatas') ?></a>
Expand Down

0 comments on commit 256f5fe

Please sign in to comment.