Skip to content

Commit

Permalink
fixed bug with constants
Browse files Browse the repository at this point in the history
  • Loading branch information
koertho committed Jun 14, 2018
1 parent cf323fe commit f706446
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Backend/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ class Module
/**
* @deprecated use ModuleList::TYPE instead
*/
const MODULE_LIST = ModuleList::TYPE;
const MODULE_LIST = 'huhlist';

public function getAllListModules()
{
$listModules = [];
/** @var \Contao\ModuleModel $adapter */
$modules = \Contao\ModuleModel::findBy('type', static::MODULE_LIST);
/** @var ModuleModel $adapter */
$modules = ModuleModel::findBy('type', ModuleList::TYPE);

if (null === $modules) {
return $listModules;
Expand Down
2 changes: 1 addition & 1 deletion src/Module/ModuleList.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

class ModuleList extends Module
{
const TYPE = 'huhreader';
const TYPE = 'huhlist';

protected $strTemplate = 'mod_list';

Expand Down

0 comments on commit f706446

Please sign in to comment.