]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/common/roundcube_plugin.rb
Pass a Configuration object to each plugin's initialize().
[mailshears.git] / lib / common / roundcube_plugin.rb
index 8e9d62259d78fd9819bc2ef77bc97c3c2b0fa96c..8575a11eae4e3ee214ba6a7d1cc317a0c018951a 100644 (file)
@@ -5,8 +5,7 @@ module RoundcubePlugin
   # That is, we implement the Plugin interface.
   include Plugin
 
-  def initialize()
-    cfg = Configuration.new()
+  def initialize(cfg)
     @db_host = cfg.roundcube_dbhost
     @db_port = cfg.roundcube_dbport
     @db_opts = cfg.roundcube_dbopts