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