From e213ad41ca719a0f763422d7d5512c39ec76f2a8 Mon Sep 17 00:00:00 2001 From: Panos Date: Fri, 29 May 2015 15:04:06 +0200 Subject: [PATCH] Fixed bug in listener after git pull --- Listener/ClarolinePluginListener.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Listener/ClarolinePluginListener.php b/Listener/ClarolinePluginListener.php index 650a33a..cab5e90 100644 --- a/Listener/ClarolinePluginListener.php +++ b/Listener/ClarolinePluginListener.php @@ -17,7 +17,6 @@ use Claroline\CoreBundle\Event\InjectJavascriptEvent; use Claroline\CoreBundle\Listener\NoHttpRequestException; use Claroline\CoreBundle\Event\PluginOptionsEvent; -use Claroline\CoreBundle\Event\InjectJavascriptEvent; use Doctrine\ORM\NoResultException; use Inwicast\ClarolinePluginBundle\Exception\NoMediacenterException; use Inwicast\ClarolinePluginBundle\Exception\NoMediacenterUserException; @@ -190,19 +189,6 @@ public function onToolOpen(DisplayToolEvent $event) $event->stopPropagation(); } - /** - * @DI\Observe("inject_javascript_layout") - * @param InjectJavascriptEvent $event - * @return string - */ - public function onInjectJs(InjectJavascriptEvent $event) - { - $content = $this->templating->render('InwicastClarolinePluginBundle:InjectPlugin:inject.html.twig'); - $event->addContent($content); - - return $content; - } - /** * @return \Inwicast\ClarolinePluginBundle\Manager\MediacenterManager */