From f05d193bc932219ecbbaf4c5ea73abe58e80714e Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 3 Nov 2020 17:21:41 -0700 Subject: [PATCH] Update require.php Set the full path for file_exists. --- resources/require.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/require.php b/resources/require.php index fe9aeba991..4f6d9e7b41 100644 --- a/resources/require.php +++ b/resources/require.php @@ -72,7 +72,7 @@ require_once "resources/functions.php"; if ($config_exists) { require "resources/pdo.php"; - if (file_exists("resources/switch.php")) { + if (file_exists($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/resources/switch.php")) { require_once "resources/switch.php"; } } @@ -81,4 +81,5 @@ if (isset($_REQUEST['view_lang_code']) && ($_REQUEST['view_lang_code']) != '') { $_SESSION['domain']['language']['code'] = $_REQUEST['view_lang_code']; } + ?>