From 7e5bb96027ee4409d8883afffa2cad50cdc3c782 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Wed, 20 Mar 2013 17:36:57 +0100 Subject: Fix OC\Log with OC_Log in wrong namespace --- lib/log.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/log.php') diff --git a/lib/log.php b/lib/log.php index f7a68c30680..6353693a289 100644 --- a/lib/log.php +++ b/lib/log.php @@ -38,7 +38,7 @@ class Log { */ public function emergency($message, array $context = array()) { - $this->log(OC_Log::FATAL, $message, $context); + $this->log(self::FATAL, $message, $context); } /** @@ -80,7 +80,7 @@ class Log { */ public function error($message, array $context = array()) { - $this->log(OC_Log::ERROR, $message, $context); + $this->log(self::ERROR, $message, $context); } /** @@ -95,7 +95,7 @@ class Log { */ public function warning($message, array $context = array()) { - $this->log(OC_Log::WARN, $message, $context); + $this->log(self::WARN, $message, $context); } /** @@ -121,7 +121,7 @@ class Log { */ public function info($message, array $context = array()) { - $this->log(OC_Log::INFO, $message, $context); + $this->log(self::INFO, $message, $context); } /** @@ -133,7 +133,7 @@ class Log { */ public function debug($message, array $context = array()) { - $this->log(OC_Log::DEBUG, $message, $context); + $this->log(self::DEBUG, $message, $context); } /** @@ -151,7 +151,7 @@ class Log { } else { $app = 'no app in context'; } - OC_Log::write($app, $message, $level); + \OC_Log::write($app, $message, $level); } } -- cgit v1.2.3