From: Jeffery To Date: Tue, 9 Mar 2010 02:20:48 +0000 (+0800) Subject: Fixed "Warning: syslog() expects parameter 1 to be long, string given" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8a9b3a858b5b7693198a10c0a9c84155cdb096b2;p=quix0rs-gnu-social.git 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. --- diff --git a/plugins/FirePHP/FirePHPPlugin.php b/plugins/FirePHP/FirePHPPlugin.php index 452f790242..9143ff69ca 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)