Skip to content

Commit

Permalink
closes #14
Browse files Browse the repository at this point in the history
  • Loading branch information
PF4Public committed May 16, 2016
1 parent aa31d0e commit 32741b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
File renamed without changes.
15 changes: 2 additions & 13 deletions fetchmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
class fetchmail extends rcube_plugin {
public $task = 'settings';
function init() {
$this->load_config ();
$this->load_config('config.inc.php.dist');
$this->load_config();
$this->add_texts ( 'localization/', true );
$rcmail = rcmail::get_instance ();
$this->register_action ( 'plugin.fetchmail', array (
Expand Down Expand Up @@ -46,18 +47,6 @@ function init() {
) );
$this->include_script ( 'fetchmail.js' );
}
function load_config() {
$rcmail = rcmail::get_instance ();
$config = "plugins/fetchmail/config/config.inc.php";
if (file_exists ( $config ))
include $config;
else if (file_exists ( $config . ".dist" ))
include $config . ".dist";
if (is_array ( $rcmail_config )) {
$arr = array_merge ( $rcmail->config->all (), $rcmail_config );
$rcmail->config->merge ( $arr );
}
}

function init_html() {
$rcmail = rcmail::get_instance ();
Expand Down

0 comments on commit 32741b2

Please sign in to comment.