improved code
This commit is contained in:
parent
82ebdb4ba9
commit
9b85d66bff
@ -31,14 +31,15 @@
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
|
||||
|
||||
<?php
|
||||
$defaultlanguage = "de";
|
||||
|
||||
# Get language from URL
|
||||
$language = $_GET["lang"];
|
||||
|
||||
#Check if Language Parameter is empty
|
||||
if(isset($language)) {} else {
|
||||
if(isset($_GET["lang"])) {
|
||||
$language = $_GET["lang"];
|
||||
} else {
|
||||
$language = $defaultlanguage;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user