From ef86f71716f02b9c58ee19597aab0b4bbded68bb Mon Sep 17 00:00:00 2001 From: Tobias Duehr Date: Tue, 21 Apr 2020 13:17:31 +0200 Subject: [PATCH] Check for non-namespaced "ModuleNewsList" classname --- src/Resources/contao/Hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/contao/Hooks.php b/src/Resources/contao/Hooks.php index c2ae77e..0977c8d 100644 --- a/src/Resources/contao/Hooks.php +++ b/src/Resources/contao/Hooks.php @@ -9,7 +9,7 @@ class Hooks { public static function apiModuleGenerated(ApiModule $module, string $moduleClass) { - if ($moduleClass != 'Contao\ModuleNewsList') { + if ($moduleClass != 'Contao\ModuleNewsList' && $moduleClass != 'ModuleNewsList') { return; } $_module = new ModuleNewsList($module->model, null);