[eluser]Unknown[/eluser]
Shouldn't it be $_log =& load_class('Log', 'core');
Code:
function log_message($level = 'error', $message, $php_error = FALSE)
{
static $_log;
if (config_item('log_threshold') == 0)
{
return;
}
$_log =& load_class('Log', 'core');
$_log->write_log($level, $message, $php_error);
}
instead of $_log =& load_class('Log');
Code:
function log_message($level = 'error', $message, $php_error = FALSE)
{
static $_log;
if (config_item('log_threshold') == 0)
{
return;
}
$_log =& load_class('Log');
$_log->write_log($level, $message, $php_error);
}
that prevents me from loading MY_Log, because default CI_Log loads first.