Update resources/require.php - Don't require switch.php if not present (framework support).

This commit is contained in:
Nate 2020-11-03 12:16:00 -07:00
parent 5c7f97ac8a
commit 49e2f1b41e
1 changed files with 3 additions and 1 deletions

View File

@ -72,8 +72,10 @@
require_once "resources/functions.php";
if ($config_exists) {
require "resources/pdo.php";
if (file_exists("resources/switch.php")) {
require_once "resources/switch.php";
}
}
//change language on the fly - for translate tool (if available)
if (isset($_REQUEST['view_lang_code']) && ($_REQUEST['view_lang_code']) != '') {