diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/config.php | 6 |
1 files changed, 5 insertions, 1 deletions
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); } |