Procházet zdrojové kódy

Update require.php

Set the full path for file_exists.
FusionPBX před 4 roky
rodič
revize
e81348a3cf
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      resources/require.php

+ 2 - 1
resources/require.php

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