Update resources/require.php - Don't require switch.php if not present (framework support).
This commit is contained in:
parent
5c7f97ac8a
commit
49e2f1b41e
|
|
@ -72,8 +72,10 @@
|
||||||
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")) {
|
||||||
require_once "resources/switch.php";
|
require_once "resources/switch.php";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//change language on the fly - for translate tool (if available)
|
//change language on the fly - for translate tool (if available)
|
||||||
if (isset($_REQUEST['view_lang_code']) && ($_REQUEST['view_lang_code']) != '') {
|
if (isset($_REQUEST['view_lang_code']) && ($_REQUEST['view_lang_code']) != '') {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue