Oliver Martin wrote:
> When I'm calling $this->load_config('config.inc.php') or $this-
> >load_config(), the function always returns false and I found the
> following error message in the error log ...
> Does anybody has some idea about this issue?
When you call load_config, the rcube_config::load_from_file() is called:
public function load_from_file($fpath)
{
if (is_file($fpath)) {
@include($fpath);
if (is_array($rcmail_config)) {
$this->prop = array_merge($this->prop, $rcmail_config);
return true;
}
}
return false;
}
So, remove '@' sign. BTW, we should check with is_readable() here.
--
Aleksander 'A.L.E.C' Machniak http://alec.pl gg:2275252
LAN Management System Developer http://lms.org.pl
Roundcube Webmail Project Developer http://roundcube.net
_______________________________________________
List info: http://lists.roundcube.net/dev/