christian-putzke / Roundcube-CardDAV

Roundcube CardDAV Plugin
http://www.graviox.de
GNU Affero General Public License v3.0
119 stars 28 forks source link

Values in config.inc.php have no effect #26

Open metawave opened 12 years ago

metawave commented 12 years ago

I was trying to use other table names to avoid conflicts, but after I've changed the values in the config file, he's still looking for the old name. I also noticed in the config.inc.php, the end tag for php "?>" was missing. So I was not sure if the config file is considered at all.

I've have added the $this->load_config(); in the carddav.php and saved the config value (db_table_carddav_server) as an instance variable, which I've used everywhere you're calling get_table_name() as a parameter. In carddav_addressbook.php I had the same problem, so I've added the second config value (db_table_carddav_contacts) to another instance variable in carddav.php. Then I've extended all "new carddav_addressbook()" calls with the config value as an additional parameter. In carddav_addressbook, I've added the constructor parameter also as an instance variable and used in all get_table_name as a parameter. Bam, that was pretty easy, but with no knowledge of rcmail api you have a bit longer than usual ;-)

Now I can finally use your great plugin. Can you fix the problem with the config file, shouldn't be a bit of a problem for you. Thanks a lot!