From 5506af8fccdd6b0ba10c58ae1f36cd4b58e6b988 Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 5 Nov 2009 23:21:40 -0500 Subject: [PATCH] Updating file headers. Removing Object::$_log. CakeLog is now called statically. Saving an instance is not longer necessary or desired. --- cake/libs/log/file_log.php | 5 ++--- cake/libs/object.php | 27 +++++---------------------- 2 files changed, 7 insertions(+), 25 deletions(-) diff --git a/cake/libs/log/file_log.php b/cake/libs/log/file_log.php index 8bdbd39d2..483f1dbb8 100644 --- a/cake/libs/log/file_log.php +++ b/cake/libs/log/file_log.php @@ -11,7 +11,6 @@ * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * - * @filesource * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project * @package cake @@ -23,8 +22,8 @@ /** * File Storage stream for Logging * - * @package cake - * @subpackage cake.cake.libs.log + * @package cake + * @subpackage cake.cake.libs.log */ class FileLog { diff --git a/cake/libs/object.php b/cake/libs/object.php index fee862131..86e6c59aa 100644 --- a/cake/libs/object.php +++ b/cake/libs/object.php @@ -1,6 +1,4 @@ _log)) { - $this->_log = new CakeLog(); - } if (!is_string($msg)) { $msg = print_r($msg, true); } - return $this->_log->write($type, $msg); + return CakeLog::write($type, $msg); } /**