Fixed "Warning: syslog() expects parameter 1 to be long, string given"

With the FirePHP plugin enabled, I get these warnings in the output
page. This is because the StartLog handler inadvertly modifies the
original (number) priority with the corresponding (string) FirePHP
priority.
This commit is contained in:
Jeffery To 2010-03-09 10:20:48 +08:00 committed by Craig Andrews
parent fa1262f51e
commit 8a9b3a858b

View File

@ -52,8 +52,8 @@ class FirePHPPlugin extends Plugin
{
static $firephp_priorities = array(FirePHP::ERROR, FirePHP::ERROR, FirePHP::ERROR, FirePHP::ERROR,
FirePHP::WARN, FirePHP::LOG, FirePHP::LOG, FirePHP::INFO);
$priority = $firephp_priorities[$priority];
$this->firephp->fb($msg, $priority);
$fp_priority = $firephp_priorities[$priority];
$this->firephp->fb($msg, $fp_priority);
}
function onPluginVersion(&$versions)