From 4a855be8147d0735cb0c423a15532408edaffe34 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= <jfd@butonic.de>
Date: Mon, 14 Jul 2014 19:28:29 +0200
Subject: [PATCH] fix logger implementation and test

---
 lib/private/log.php  | 2 +-
 tests/lib/logger.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/private/log.php b/lib/private/log.php
index 98465ec40ea..021cc1578a7 100644
--- a/lib/private/log.php
+++ b/lib/private/log.php
@@ -154,6 +154,6 @@ class Log implements ILogger {
 		$message = strtr($message, $replace);
 
 		$logger = $this->logger;
-		$logger::write($app, $message, $level);
+		call_user_func(array($logger, 'write'), $app, $message, $level);
 	}
 }
diff --git a/tests/lib/logger.php b/tests/lib/logger.php
index 7d5d4049b28..fcdf5b58670 100644
--- a/tests/lib/logger.php
+++ b/tests/lib/logger.php
@@ -19,7 +19,7 @@ class Logger extends \PHPUnit_Framework_TestCase {
 
 	public function setUp() {
 		self::$logs = array();
-		$this->logger = new Log($this);
+		$this->logger = new Log('Test\Logger');
 	}
 
 	public function testInterpolation() {
-- 
GitLab