summaryrefslogtreecommitdiff
path: root/program/include/rcube_config.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2012-04-16 11:59:08 +0000
committeralecpl <alec@alec.pl>2012-04-16 11:59:08 +0000
commitbe98dfc2c0bdc4f911c6daa94e3fddc29afc89a8 (patch)
tree05907bc164d7c41157ad1087be672d7bbcbac980 /program/include/rcube_config.php
parent1aceb9cec82639250a603aa0806f0399f7bae68d (diff)
- Replace some references to rcmail with rcube
Diffstat (limited to 'program/include/rcube_config.php')
-rw-r--r--program/include/rcube_config.php12
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'];
}