Skip to content

Commit

Permalink
Append to TL_MODELS instead of overwriting it
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Jul 21, 2020
1 parent 9857c38 commit 3cb436f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 24 deletions.
8 changes: 3 additions & 5 deletions calendar-bundle/src/Resources/contao/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@
$GLOBALS['TL_PERMISSIONS'][] = 'calendarfeedp';

// Models
$GLOBALS['TL_MODELS'] = array(
'tl_calendar_events' => CalendarEventsModel::class,
'tl_calendar_feed' => CalendarFeedModel::class,
'tl_calendar' => CalendarModel::class
);
$GLOBALS['TL_MODELS']['tl_calendar_events'] = CalendarEventsModel::class;
$GLOBALS['TL_MODELS']['tl_calendar_feed'] = CalendarFeedModel::class;
$GLOBALS['TL_MODELS']['tl_calendar'] = CalendarModel::class;
6 changes: 2 additions & 4 deletions comments-bundle/src/Resources/contao/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,5 @@
$GLOBALS['TL_CRON']['daily']['purgeCommentSubscriptions'] = array(Comments::class, 'purgeSubscriptions');

// Models
$GLOBALS['TL_MODELS'] = array(
'tl_comments' => CommentsModel::class,
'tl_comments_notify' => CommentsNotifyModel::class
);
$GLOBALS['TL_MODELS']['tl_comments'] = CommentsModel::class;
$GLOBALS['TL_MODELS']['tl_comments_notify'] = CommentsNotifyModel::class;
6 changes: 2 additions & 4 deletions faq-bundle/src/Resources/contao/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,5 @@
$GLOBALS['TL_PERMISSIONS'][] = 'faqp';

// Models
$GLOBALS['TL_MODELS'] = array(
'tl_faq_category' => FaqCategoryModel::class,
'tl_faq' => FaqModel::class
);
$GLOBALS['TL_MODELS']['tl_faq_category'] = FaqCategoryModel::class;
$GLOBALS['TL_MODELS']['tl_faq'] = FaqModel::class;
8 changes: 3 additions & 5 deletions news-bundle/src/Resources/contao/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@
$GLOBALS['TL_PERMISSIONS'][] = 'newsfeedp';

// Models
$GLOBALS['TL_MODELS'] = array(
'tl_news_archive' => NewsArchiveModel::class,
'tl_news_feed' => NewsFeedModel::class,
'tl_news' => NewsModel::class
);
$GLOBALS['TL_MODELS']['tl_news_archive'] = NewsArchiveModel::class;
$GLOBALS['TL_MODELS']['tl_news_feed'] = NewsFeedModel::class;
$GLOBALS['TL_MODELS']['tl_news'] = NewsModel::class;
10 changes: 4 additions & 6 deletions newsletter-bundle/src/Resources/contao/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@
$GLOBALS['TL_CRON']['daily']['purgeNewsletterSubscriptions'] = array(Newsletter::class, 'purgeSubscriptions');

// Models
$GLOBALS['TL_MODELS'] = array(
'tl_newsletter_channel' => NewsletterChannelModel::class,
'tl_newsletter_deny_list' => NewsletterDenyListModel::class,
'tl_newsletter' => NewsletterModel::class,
'tl_newsletter_recipients' => NewsletterRecipientsModel::class
);
$GLOBALS['TL_MODELS']['tl_newsletter_channel'] = NewsletterChannelModel::class;
$GLOBALS['TL_MODELS']['tl_newsletter_deny_list'] = NewsletterDenyListModel::class;
$GLOBALS['TL_MODELS']['tl_newsletter'] = NewsletterModel::class;
$GLOBALS['TL_MODELS']['tl_newsletter_recipients'] = NewsletterRecipientsModel::class;

0 comments on commit 3cb436f

Please sign in to comment.