Skip to content

Commit

Permalink
fix: conditional extender workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Oct 12, 2023
1 parent 847fac2 commit 8bbc8b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@
->registerPreference('draftAutosaveEnable', 'boolVal', false)
->registerPreference('draftAutosaveInterval', 'intVal', 6),

(new Extend\Conditional())
(new Extend\Conditional())
->whenExtensionEnabled('blomstra-gdpr', [
(new UserData())
->addType(Data\Drafts::class),
class_exists(UserData::class) ? (new UserData())
->addType(Data\Drafts::class) : null
]),
];

0 comments on commit 8bbc8b7

Please sign in to comment.