diff --git a/includes/footer.php b/includes/footer.php index 1d618d87a094ad1ade72b330a3ea454909483d0b..471b8d71242b03d3ee72a46e680ceed070859b5c 100644 --- a/includes/footer.php +++ b/includes/footer.php @@ -29,11 +29,11 @@ $stmt = $db->prepare("SELECT distinct(locale) FROM extension_locale ORDER BY locale"); $stmt->execute(); $locales = $stmt->fetchAll(PDO::FETCH_ASSOC) ?? []; - ?> + <form action="updateLang.php" method="POST"> <select name="lang"> - <?php + <?php foreach($locales as $locale) { ?> <option <?php if($locale["locale"] == $_SESSION["lang"]) echo "selected"; ?>><?=$locale["locale"]?></option> @@ -44,5 +44,4 @@ <input type="hidden" name="next" value="<?=$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']?>"> <button type="submit">Apply</button> </form> - -</footer> \ No newline at end of file +</footer>