From 78fa8c2129713827a5dda2c9d339e6e80aef1b45 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sun, 26 Sep 2010 14:05:41 +0200 Subject: [PATCH] small fixes --- backend/lib/Interpreter/Interpreter.php | 2 +- backend/lib/Model/Entity.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/lib/Interpreter/Interpreter.php b/backend/lib/Interpreter/Interpreter.php index c01c696..5b8e4a4 100644 --- a/backend/lib/Interpreter/Interpreter.php +++ b/backend/lib/Interpreter/Interpreter.php @@ -59,7 +59,7 @@ abstract class Interpreter implements InterpreterInterface { $this->from = (isset($from)) ? self::parseDateTimeString($from, time() * 1000) : NULL; $this->to = (isset($to)) ? self::parseDateTimeString($to, (isset($this->from)) ? $this->from : time() * 1000) : NULL; - Util\Debug::log('interval', $this->from, $this->to, strftime('%c', $this->from/1000), strftime('%c', $this->to/1000)); + //Util\Debug::log('interval', $this->from, $this->to, strftime('%c', $this->from/1000), strftime('%c', $this->to/1000)); } /** diff --git a/backend/lib/Model/Entity.php b/backend/lib/Model/Entity.php index f212dd2..0934d03 100644 --- a/backend/lib/Model/Entity.php +++ b/backend/lib/Model/Entity.php @@ -197,7 +197,7 @@ abstract class Entity { * @return Interpreter */ public function getInterpreter(\Doctrine\ORM\EntityManager $em, $from, $to) { - $class = 'Volkszaehler\Interpreter\\' . $this->getDefinition()->getInterpreter(); + $class = $this->getDefinition()->getInterpreter(); return new $class($this, $em, $from, $to); } }