Update destinations.php
Prevent a plugin from breaking parts of the project.
This commit is contained in:
@@ -180,7 +180,12 @@ if (!class_exists('destinations')) {
|
|||||||
$config_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/app_config.php");
|
$config_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/app_config.php");
|
||||||
$x = 0;
|
$x = 0;
|
||||||
foreach ($config_list as &$config_path) {
|
foreach ($config_list as &$config_path) {
|
||||||
include($config_path);
|
try {
|
||||||
|
include($config_path);
|
||||||
|
}
|
||||||
|
catch (Exception $e) {
|
||||||
|
//echo 'Caught exception: ', $e->getMessage(), "\n";
|
||||||
|
}
|
||||||
$x++;
|
$x++;
|
||||||
}
|
}
|
||||||
$i = 0;
|
$i = 0;
|
||||||
@@ -443,7 +448,12 @@ if (!class_exists('destinations')) {
|
|||||||
$config_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/app_config.php");
|
$config_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/app_config.php");
|
||||||
$x = 0;
|
$x = 0;
|
||||||
foreach ($config_list as &$config_path) {
|
foreach ($config_list as &$config_path) {
|
||||||
include($config_path);
|
try {
|
||||||
|
include($config_path);
|
||||||
|
}
|
||||||
|
catch (Exception $e) {
|
||||||
|
//echo 'Caught exception: ', $e->getMessage(), "\n";
|
||||||
|
}
|
||||||
$x++;
|
$x++;
|
||||||
}
|
}
|
||||||
$i = 0;
|
$i = 0;
|
||||||
@@ -647,7 +657,12 @@ if (!class_exists('destinations')) {
|
|||||||
$config_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/app_config.php");
|
$config_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/app_config.php");
|
||||||
$x = 0;
|
$x = 0;
|
||||||
foreach ($config_list as &$config_path) {
|
foreach ($config_list as &$config_path) {
|
||||||
include($config_path);
|
try {
|
||||||
|
include($config_path);
|
||||||
|
}
|
||||||
|
catch (Exception $e) {
|
||||||
|
//echo 'Caught exception: ', $e->getMessage(), "\n";
|
||||||
|
}
|
||||||
$x++;
|
$x++;
|
||||||
}
|
}
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user