From 37f43a0f51ae8e265cb9d84435a606d85074ec3b Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Mon, 28 Apr 2014 20:18:08 +0200 Subject: [PATCH] Changed isSubclassOf by implementsInterface --- core/lib/Thelia/Model/Module.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/Thelia/Model/Module.php b/core/lib/Thelia/Model/Module.php index 7e43912dc..d599d7d87 100644 --- a/core/lib/Thelia/Model/Module.php +++ b/core/lib/Thelia/Model/Module.php @@ -168,7 +168,7 @@ class Module extends BaseModule public function isDeliveryModule() { $moduleReflection = new \ReflectionClass($this->getFullNamespace()); - return $moduleReflection->isSubclassOf("Thelia\Module\DeliveryModuleInterface"); + return $moduleReflection->implementsInterface("Thelia\Module\DeliveryModuleInterface"); } /** @@ -177,7 +177,7 @@ class Module extends BaseModule public function isPayementModule() { $moduleReflection = new \ReflectionClass($this->getFullNamespace()); - return $moduleReflection->isSubclassOf("Thelia\Module\PaymentModuleInterface"); + return $moduleReflection->implementsInterface("Thelia\Module\PaymentModuleInterface"); }