X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fmailshears%2Fplugins%2Froundcube_db.rb;h=111e360809e25242f81f00bda3bb91be0652ece0;hp=cb2e055f44f9b720ca436a510e6f7c0fb85bfadf;hb=a4db2e7eaaf9d17f9250d601bf82b58bdb2681d2;hpb=314f5670531dfda9b3d708fce8b0161a098cf134 diff --git a/lib/mailshears/plugins/roundcube_db.rb b/lib/mailshears/plugins/roundcube_db.rb index cb2e055..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