Commit c88c0550 authored by Lorenzo Faletra's avatar Lorenzo Faletra

fix language selection link

parent d64344b4
......@@ -227,7 +227,7 @@ header {
color: #fff;
width: 100%;
background-color: #c9c9c9;
background-image: url('../img/feathers.jpg');
background-image: url('../img/macaw-poly.jpg');
background-position: center;
-webkit-background-size: cover;
-moz-background-size: cover;
......@@ -555,4 +555,4 @@ img::-moz-selection {
.language-navbar {
background-color: rgba(34, 34, 34, 0.9);
}
\ No newline at end of file
}
......@@ -76,9 +76,9 @@
<ul class="dropdown-menu language-navbar" aria-labelledby="languageDropdown">
<?php
foreach($languages as $key => $value) {
$link = 'http://' . $_SERVER[HTTP_HOST] . $_SERVER[REQUEST_URI];
$link = 'https://' . $_SERVER[HTTP_HOST] . $_SERVER[REQUEST_URI];
if(!strpos($link, "?lang="))
$final_link = "$link.?lang=$key";
$final_link = "$link?lang=$key";
else {
$language = $_GET['lang'];
$search = "?lang=$language";
......@@ -99,4 +99,4 @@
</ul>
</div>
</div>
</nav>
\ No newline at end of file
</nav>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment