Update require.php

Set the full path for file_exists.
This commit is contained in:
FusionPBX 2020-11-03 17:21:41 -07:00 committed by GitHub
parent 704a1eb5e5
commit f05d193bc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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'];
}
?>