From 8a9b3a858b5b7693198a10c0a9c84155cdb096b2 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Tue, 9 Mar 2010 10:20:48 +0800 Subject: [PATCH] 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. --- plugins/FirePHP/FirePHPPlugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.5