diff options
Diffstat (limited to 'program/include/rcube_config.php')
-rw-r--r-- | program/include/rcube_config.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/program/include/rcube_config.php b/program/include/rcube_config.php index 5cc8571c9..5fb5bee80 100644 --- a/program/include/rcube_config.php +++ b/program/include/rcube_config.php @@ -186,19 +186,15 @@ class rcube_config $result = $def; } - $rcmail = rcube::get_instance(); + $rcube = rcube::get_instance(); if ($name == 'timezone' && isset($this->prop['_timezone_value'])) $result = $this->prop['_timezone_value']; - if (is_object($rcmail->plugins)) { - $plugin = $rcmail->plugins->exec_hook('config_get', array( - 'name' => $name, 'default' => $def, 'result' => $result)); + $plugin = $rcube->plugins->exec_hook('config_get', array( + 'name' => $name, 'default' => $def, 'result' => $result)); - return $plugin['result']; - } - - return $result; + return $plugin['result']; } |