Let say this is a 'typo'.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 21 Mar 2010 19:11:31 +0000 (20:11 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 21 Mar 2010 19:11:31 +0000 (20:11 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/platal.php
classes/pllogger.php

index d6b26f2..a9376cd 100644 (file)
@@ -393,7 +393,7 @@ abstract class Platal
 
     public function &buildLogger($uid, $suid)
     {
-        if (define('PL_LOGGER_CLASS')) {
+        if (defined('PL_LOGGER_CLASS')) {
             $class = PL_LOGGER_CLASS;
             return new $class($uid, $suid);
         } else {
index a056df5..77eb97f 100644 (file)
@@ -48,7 +48,7 @@ abstract class PlLogger
     public static function get($uid, $suid = 0)
     {
         global $platal;
-        return $platal->buildLogger();
+        return $platal->buildLogger($uid, $suid);
     }
 
     /** Return a dummy logger.