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,7 +72,9 @@
require_once "resources/functions.php";
if ($config_exists) {
require "resources/pdo.php";
require_once "resources/switch.php";
if (file_exists("resources/switch.php")) {
require_once "resources/switch.php";
}
}
//change language on the fly - for translate tool (if available)