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:
parent
fa1262f51e
commit
8a9b3a858b
@ -52,8 +52,8 @@ class FirePHPPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
static $firephp_priorities = array(FirePHP::ERROR, FirePHP::ERROR, FirePHP::ERROR, FirePHP::ERROR,
|
static $firephp_priorities = array(FirePHP::ERROR, FirePHP::ERROR, FirePHP::ERROR, FirePHP::ERROR,
|
||||||
FirePHP::WARN, FirePHP::LOG, FirePHP::LOG, FirePHP::INFO);
|
FirePHP::WARN, FirePHP::LOG, FirePHP::LOG, FirePHP::INFO);
|
||||||
$priority = $firephp_priorities[$priority];
|
$fp_priority = $firephp_priorities[$priority];
|
||||||
$this->firephp->fb($msg, $priority);
|
$this->firephp->fb($msg, $fp_priority);
|
||||||
}
|
}
|
||||||
|
|
||||||
function onPluginVersion(&$versions)
|
function onPluginVersion(&$versions)
|
||||||
|
Loading…
Reference in New Issue
Block a user