diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-11-30 11:55:33 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-11-30 11:55:33 +0000 |
| commit | 2341324d25c6643cca8fe3e14cdf0b71c5f920e5 (patch) | |
| tree | f6b5ae403815a3d9b332dee29aad8981a420c01d /roundcubemail/program/include/rcube_plugin.php | |
| parent | 37a0940f522dccebc9281320e4bb3294bb4444fa (diff) | |
- don't warn about lack of plugin's config file, it's absolutely optional
git-svn-id: https://svn.roundcube.net/trunk@3144 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_plugin.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_plugin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_plugin.php b/roundcubemail/program/include/rcube_plugin.php index cb5f8e256..68a5bb317 100644 --- a/roundcubemail/program/include/rcube_plugin.php +++ b/roundcubemail/program/include/rcube_plugin.php @@ -59,7 +59,7 @@ abstract class rcube_plugin { $fpath = $this->home.'/'.$fname; $rcmail = rcmail::get_instance(); - if (!$rcmail->config->load_from_file($fpath, false)) { + if (is_file($fpath) && !$rcmail->config->load_from_file($fpath, false)) { raise_error(array('code' => 527, 'type' => 'php', 'message' => "Failed to load config from $fpath"), true, false); return false; } |
