]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fixed "Warning: syslog() expects parameter 1 to be long, string given"
authorJeffery To <jeffery.to@gmail.com>
Tue, 9 Mar 2010 02:20:48 +0000 (10:20 +0800)
committerCraig Andrews <candrews@integralblue.com>
Tue, 16 Mar 2010 15:44:51 +0000 (11:44 -0400)
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.

plugins/FirePHP/FirePHPPlugin.php

index 452f7902422392507fd5c21901c0e306b112e750..9143ff69caafebb3dbeb9093e6826eb1697897e0 100644 (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)