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
|
||||||
|
if(isset($_GET["lang"])) {
|
||||||
$language = $_GET["lang"];
|
$language = $_GET["lang"];
|
||||||
|
} else {
|
||||||
#Check if Language Parameter is empty
|
|
||||||
if(isset($language)) {} else {
|
|
||||||
$language = $defaultlanguage;
|
$language = $defaultlanguage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user