Skip to content

Commit

Permalink
Merge pull request #240 from discordier/hotfix/issue-239
Browse files Browse the repository at this point in the history
Fix #239 - make dc-general optional again
  • Loading branch information
davidmaack authored Oct 24, 2017
2 parents 4a7cabd + 6820e42 commit 50ecceb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@
},
"require": {
"contao/core-bundle":"~3.2 || ~4.1",
"contao-community-alliance/composer-plugin":"~2.4 || ~3.0",
"contao-community-alliance/dc-general": "^2.0@beta"
"contao-community-alliance/composer-plugin":"~2.4 || ~3.0"
},
"autoload":{
"classmap":["system/"],
Expand Down
20 changes: 12 additions & 8 deletions system/modules/multicolumnwizard/config/event_listeners.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@
use ContaoCommunityAlliance\DcGeneral\Factory\Event\BuildDataDefinitionEvent;
use MultiColumnWizard\DcGeneral\UpdateDataDefinition;

return array
(
BuildDataDefinitionEvent::NAME => array(
array(
array(new UpdateDataDefinition(), 'addMcwFields'),
UpdateDataDefinition::PRIORITY
if (class_exists(BuildDataDefinitionEvent::class)) {
return array
(
BuildDataDefinitionEvent::NAME => array(
array(
array(new UpdateDataDefinition(), 'addMcwFields'),
UpdateDataDefinition::PRIORITY
)
)
)
);
);
}

return array();

0 comments on commit 50ecceb

Please sign in to comment.