diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-04-16 11:59:08 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-04-16 11:59:08 +0000 |
| commit | 388de0eb96b779fabc8677a05d97bf2515411d83 (patch) | |
| tree | 271cad39cd8bcef9f334eda01acdb027063f2fb7 /roundcubemail/program/include/rcube_config.php | |
| parent | fcd056183c14afad005a26157b76ad4a6dc31ab4 (diff) | |
- Replace some references to rcmail with rcube
git-svn-id: https://svn.roundcube.net/trunk@6092 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_config.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_config.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/roundcubemail/program/include/rcube_config.php b/roundcubemail/program/include/rcube_config.php index 5cc8571c9..5fb5bee80 100644 --- a/roundcubemail/program/include/rcube_config.php +++ b/roundcubemail/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']; } |
