From be98dfc2c0bdc4f911c6daa94e3fddc29afc89a8 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Mon, 16 Apr 2012 07:59:08 -0400
Subject: [PATCH] - Replace some references to rcmail with rcube
---
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 5cc8571..5fb5bee 100644
--- a/program/include/rcube_config.php
+++ b/program/include/rcube_config.php
@@ -186,19 +186,15 @@
$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'];
}
--
Gitblit v1.9.1