Update index.php
This commit is contained in:
parent
7e75f63ffa
commit
7cb90482e7
11
index.php
11
index.php
@ -46,17 +46,14 @@
|
||||
}
|
||||
|
||||
#Check if Language folder exists
|
||||
if(file_exists('roles/'.$language.'/')) {
|
||||
$files = glob("roles/'".$language."'/*.php");
|
||||
echo `Sprache gefunden!!!`;
|
||||
if(file_exists("roles/".$language."/")) {
|
||||
$files = glob("roles/".$language."/*.php");
|
||||
} else {
|
||||
$language = $defaultlanguage;
|
||||
$files = glob("roles/'".$language."'/*.php");
|
||||
echo `Sprache wurde nicht im Dateisystem gefunden...`;
|
||||
$files = glob("roles/".$language."/*.php");
|
||||
}
|
||||
#Get all files from the language folder
|
||||
|
||||
|
||||
sort($files);
|
||||
$count = 1;
|
||||
|
||||
@ -117,8 +114,8 @@ if ($count%2 != 1) echo "</div>";
|
||||
<div class="card-content white-text">
|
||||
<span class="card-title">DEBUG INFO</span>
|
||||
<?php
|
||||
|
||||
echo 'Language: '.$language;
|
||||
echo '<br>Filesystem: '.var_dump($files);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user