diff options
author | Jeffery To <jeffery.to@gmail.com> | 2010-03-09 10:20:48 +0800 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2010-03-16 11:44:51 -0400 |
commit | 8a9b3a858b5b7693198a10c0a9c84155cdb096b2 (patch) | |
tree | 6bc09c491810556354b6e6a9a88a09e781f5fccb /plugins/FirePHP | |
parent | fa1262f51e95fb64d64105cf2a6cce77a227cd6c (diff) |
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.
Diffstat (limited to 'plugins/FirePHP')
-rw-r--r-- | plugins/FirePHP/FirePHPPlugin.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/FirePHP/FirePHPPlugin.php b/plugins/FirePHP/FirePHPPlugin.php index 452f79024..9143ff69c 100644 --- a/plugins/FirePHP/FirePHPPlugin.php +++ b/plugins/FirePHP/FirePHPPlugin.php @@ -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) |