Skip to content

Commit

Permalink
Check for non-namespaced "ModuleNewsList" classname
Browse files Browse the repository at this point in the history
  • Loading branch information
saibotd authored Apr 21, 2020
1 parent 052caa0 commit ef86f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/contao/Hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ef86f71

Please sign in to comment.