Update require.php
Set the full path for file_exists.
This commit is contained in:
@@ -72,7 +72,7 @@
|
|||||||
require_once "resources/functions.php";
|
require_once "resources/functions.php";
|
||||||
if ($config_exists) {
|
if ($config_exists) {
|
||||||
require "resources/pdo.php";
|
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";
|
require_once "resources/switch.php";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -81,4 +81,5 @@
|
|||||||
if (isset($_REQUEST['view_lang_code']) && ($_REQUEST['view_lang_code']) != '') {
|
if (isset($_REQUEST['view_lang_code']) && ($_REQUEST['view_lang_code']) != '') {
|
||||||
$_SESSION['domain']['language']['code'] = $_REQUEST['view_lang_code'];
|
$_SESSION['domain']['language']['code'] = $_REQUEST['view_lang_code'];
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user