Forráskód Böngészése

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

Nate 4 éve
szülő
commit
0f6bd8e4fc
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      resources/require.php

+ 3 - 1
resources/require.php

@@ -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)