From 6c1cfaf412b80ecf29fea8c589618480f33dadec Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 14 Jul 2009 13:49:46 +0200 Subject: [PATCH] How do we want to deal with optional configuration files? We used to ignore PEAR_Errors where config files are optional. This no longer works with exceptions. --- framework/Core/lib/Horde.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/Core/lib/Horde.php b/framework/Core/lib/Horde.php index 58f336949..21cdb795d 100644 --- a/framework/Core/lib/Horde.php +++ b/framework/Core/lib/Horde.php @@ -692,7 +692,8 @@ HTML; // Return an error if neither main or vhosted versions of the config // file exist. if (!$was_included) { - throw new Horde_Exception(sprintf('Failed to import configuration file "%s".', $config_dir . $config_file)); + Horde::logMessage(sprintf('Failed to import configuration file "%s".', $config_dir . $config_file), __FILE__, __LINE__, PEAR_LOG_DEBUG); + return; } if (isset($output) && $show_output) { -- 2.11.0