[RCD] Override plugin config with user's preferences

Thomas Bruederli roundcube at gmail.com
Tue Feb 23 09:11:19 CET 2010


On Wed, Feb 10, 2010 at 18:56, A.L.E.C <alec at alec.pl> wrote:
> In svn-trunk version file existing check is not needed, load_config()
> will not generate a warning if file doesn't exists.
>
>          $rcmail = rcmail::get_instance();
>>         $config = $rcmail->config;
>>         $config->merge($rcmail->user->get_prefs());
>
> And this is not needed. See load_config(), it uses
> rcube_config::load_from_file() with 2nd argument set to false, so user
> preferences will be not overwritten.
>

This should now be definitely fixed in http://trac.roundcube.net/changeset/3274

~Thomas
_______________________________________________
List info: http://lists.roundcube.net/dev/



More information about the Dev mailing list