From 8f93490ac45fbd74bd0e9697a685fd43bb34239b Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Sun, 21 Jul 2013 11:13:29 +0200 Subject: fix failing master branch - Test_Config::testWriteData --- lib/config.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/config.php b/lib/config.php index 00d9f5b4247..a38ce19c74f 100644 --- a/lib/config.php +++ b/lib/config.php @@ -144,7 +144,11 @@ class Config { continue; } unset($CONFIG); - include $file; + if((@include $file) === false) + { + throw new HintException("Can't read from config file '" . $file . "'. ". + 'This is usually caused by the wrong file permission.'); + } if (isset($CONFIG) && is_array($CONFIG)) { $this->cache = array_merge($this->cache, $CONFIG); } -- cgit v1.2.3