Update index.php

This commit is contained in:
Jesse James Isler 2022-03-28 15:41:50 +02:00
parent 7e75f63ffa
commit 7cb90482e7

View File

@ -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>