From db20220eef8f63b465b302f6ccd8f6c0719a7b53 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 10 Jun 2017 09:42:54 -0600 Subject: [PATCH] Create text.php Switch require back to include what it was originally as it breaks too many things with little benefits. --- resources/classes/text.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/classes/text.php b/resources/classes/text.php index b555e52d0a..659f0685f3 100644 --- a/resources/classes/text.php +++ b/resources/classes/text.php @@ -73,12 +73,12 @@ class text { } if (file_exists("${lang_path}/app_languages.php")) { if ($lang_path != 'resources' or $exclude_global) { - require "${lang_path}/app_languages.php"; + include "${lang_path}/app_languages.php"; } } - else { - throw new Exception("could not find app_languages for '$app_path'"); - } + //else { + // throw new Exception("could not find app_languages for '$app_path'"); + //} //check the session language if (isset($_SESSION['domain']) and $language_code == null) {