From 8f06c8050b63f65b298b7323958f2127bb3ef5c5 Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Thu, 16 Jan 2014 12:01:05 +0100 Subject: [PATCH] Delete module request contains now "data data" flag --- core/lib/Thelia/Action/Module.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/Thelia/Action/Module.php b/core/lib/Thelia/Action/Module.php index 286779667..1fcfd88ee 100644 --- a/core/lib/Thelia/Action/Module.php +++ b/core/lib/Thelia/Action/Module.php @@ -73,7 +73,7 @@ class Module extends BaseAction implements EventSubscriberInterface try { if (null === $module->getFullNamespace()) { - throw new \LogicException('can not instanciante this module if namespace is null. Maybe the model is not loaded ?'); + throw new \LogicException('can not instanciante this module: the namespace is null. Maybe the model is not loaded ?'); } $reflected = new \ReflectionClass($module->getFullNamespace()); @@ -82,7 +82,7 @@ class Module extends BaseAction implements EventSubscriberInterface $path = dirname($reflected->getFileName()); - $instance->destroy($con); + $instance->destroy($con, $event->getDeleteData()); $fs = new Filesystem(); $fs->remove($path);