Skip to content

Commit

Permalink
Update WikiListener.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ngodfraind committed Nov 23, 2015
1 parent bf37c10 commit 66a9bf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Listener/WikiListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function onOpen(OpenResourceEvent $event)

public function onDelete(DeleteResourceEvent $event)
{
$em = $this->container->get('doctrine.orm.entity_manager');
$em = $this->container->get('claroline.persistence.object_manager');
$em->remove($event->getResource());
$em->flush();
$event->stopPropagation();
Expand All @@ -88,4 +88,4 @@ public function onCopy(CopyResourceEvent $event)
$event->setCopy($newWiki);
$event->stopPropagation();
}
}
}

0 comments on commit 66a9bf1

Please sign in to comment.