Create text.php

Switch require back to include what it was originally as it breaks too many things with little benefits.
This commit is contained in:
FusionPBX 2017-06-10 09:42:54 -06:00 committed by GitHub
parent d9d50df4fb
commit aa897aca47
1 changed files with 4 additions and 4 deletions

View File

@ -73,12 +73,12 @@ class text {
} }
if (file_exists("${lang_path}/app_languages.php")) { if (file_exists("${lang_path}/app_languages.php")) {
if ($lang_path != 'resources' or $exclude_global) { if ($lang_path != 'resources' or $exclude_global) {
require "${lang_path}/app_languages.php"; include "${lang_path}/app_languages.php";
} }
} }
else { //else {
throw new Exception("could not find app_languages for '$app_path'"); // throw new Exception("could not find app_languages for '$app_path'");
} //}
//check the session language //check the session language
if (isset($_SESSION['domain']) and $language_code == null) { if (isset($_SESSION['domain']) and $language_code == null) {