Second implementation with matrix_synapse_rest_auth #2

Merged
krombel merged 51 commits from second_implementation into master 2018-03-19 13:57:16 +01:00
Showing only changes of commit 8e50ae1bbd - Show all commits

View File

@@ -5,7 +5,8 @@ if(isset($_GET['lang'])){
} }
$lang_file = dirname(__FILE__) . "/lang/lang.".$lang.".php"; $lang_file = dirname(__FILE__) . "/lang/lang.".$lang.".php";
if (!file_exists($lang_file)) { if (!file_exists($lang_file)) {
throw new Exception("Translation for " . $lang . " not found"); error_log("Translation for " . $lang . " not found. Fallback to 'de-de'");
$lang = "de-de";
} }
require_once($lang_file); require_once($lang_file);
unset($lang_file); unset($lang_file);