From 2f076848ea907dba75e1b70c0988046b3f76e67b Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Sun, 21 Aug 2011 11:30:23 +0100 Subject: [PATCH] Bug fix for errors thrown during Log initialisation --- source/lib/SihnonFramework/Log.class.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/lib/SihnonFramework/Log.class.php b/source/lib/SihnonFramework/Log.class.php index 41e6dd2..4acb874 100644 --- a/source/lib/SihnonFramework/Log.class.php +++ b/source/lib/SihnonFramework/Log.class.php @@ -15,8 +15,6 @@ class SihnonFramework_Log { protected $plugins = array(); public function __construct(SihnonFramework_Config $config) { - $log = SihnonFramework_Main::instance()->log(); - // Get a list of the logging plugins to be used $plugins = $config->get('logging.plugins'); @@ -32,7 +30,7 @@ class SihnonFramework_Log { 'category' => $config->get("logging.{$plugin}.{$instance}.category"), ); } catch(SihnonFramework_Exception_LogException $e) { - SihnonFramework_LogEntry::warning($log, $e->getMessage()); + SihnonFramework_LogEntry::warning($this, $e->getMessage()); } } }