Skip to content
Snippets Groups Projects
Commit b664dee7 authored by bill-auger's avatar bill-auger
Browse files

whitespace

parent 9218a36c
No related tags found
No related merge requests found
......@@ -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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment