X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fmailshears%2Fplugins%2Froundcube_db.rb;h=111e360809e25242f81f00bda3bb91be0652ece0;hp=c86d31460e93d96395d4cc29e0849f9a15803ae0;hb=a4db2e7eaaf9d17f9250d601bf82b58bdb2681d2;hpb=451f1c3175c1a3c8670f51ebc907102d8c99820d diff --git a/lib/mailshears/plugins/roundcube_db.rb b/lib/mailshears/plugins/roundcube_db.rb index c86d314..111e360 100644 --- a/lib/mailshears/plugins/roundcube_db.rb +++ b/lib/mailshears/plugins/roundcube_db.rb @@ -5,13 +5,14 @@ class RoundcubeDb include Plugin def initialize() - @db_host = Configuration::roundcube_dbhost - @db_port = Configuration::roundcube_dbport - @db_opts = Configuration::roundcube_dbopts - @db_tty = Configuration::roundcube_dbtty - @db_name = Configuration::roundcube_dbname - @db_user = Configuration::roundcube_dbuser - @db_pass = Configuration::roundcube_dbpass + cfg = Configuration.new() + @db_host = cfg.roundcube_dbhost + @db_port = cfg.roundcube_dbport + @db_opts = cfg.roundcube_dbopts + @db_tty = cfg.roundcube_dbtty + @db_name = cfg.roundcube_dbname + @db_user = cfg.roundcube_dbuser + @db_pass = cfg.roundcube_dbpass end