alecpl
2012-04-16 be98dfc2c0bdc4f911c6daa94e3fddc29afc89a8
program/include/rcube_plugin.php
@@ -110,8 +110,8 @@
  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 @@
      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