Skip to content

Commit

Permalink
Fix: Usage of FirePHP does not erase set_include_path done
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Nov 1, 2011
1 parent dfcc0cf commit b8e7396
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/core/lib/functions.lib.php
Expand Up @@ -491,9 +491,10 @@ function dol_syslog($message, $level=LOG_INFO)
{
// Warning FirePHPCore must be into PHP include path. It is not possible to use into require_once() a constant from
// database or config file because we must be able to log data before database or config file read.
$oldinclude=get_include_path();
set_include_path('/usr/share/php/');
require_once('FirePHPCore/FirePHP.class.php');
restore_include_path();
set_include_path($oldinclude);
ob_start();
$firephp = FirePHP::getInstance(true);
if ($level == LOG_ERR) $firephp->error($message);
Expand Down

0 comments on commit b8e7396

Please sign in to comment.