summaryrefslogtreecommitdiff
path: root/program/include/rcube_plugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'program/include/rcube_plugin.php')
-rw-r--r--program/include/rcube_plugin.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/include/rcube_plugin.php b/program/include/rcube_plugin.php
index e20f7ce6a..7048392e5 100644
--- a/program/include/rcube_plugin.php
+++ b/program/include/rcube_plugin.php
@@ -110,8 +110,8 @@ abstract class rcube_plugin
public function load_config($fname = 'config.inc.php')
{
$fpath = $this->home.'/'.$fname;
- $rcmail = rcube::get_instance();
- if (is_file($fpath) && !$rcmail->config->load_from_file($fpath)) {
+ $rcube = rcube::get_instance();
+ if (is_file($fpath) && !$rcube->config->load_from_file($fpath)) {
rcube::raise_error(array(
'code' => 527, 'type' => 'php',
'file' => __FILE__, 'line' => __LINE__,
@@ -177,7 +177,7 @@ abstract class rcube_plugin
foreach ($texts as $key => $value)
$add[$domain.'.'.$key] = $value;
- $rcmail = rcube::get_instance();
+ $rcmail = rcmail::get_instance();
$rcmail->load_language($lang, $add);
// add labels to client