Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize module content class #129

Merged
merged 1 commit into from
Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ public function getContentContainerTypes()
];
}

/**
* @inheritdoc
*/
public function getContentClasses(): array
{
return [Media::class];
}

public function getContainerPermissions($contentContainer = null)
{
return [
Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

1.5.5 (Unreleased)
-------------------
- Fix #129: Initialize module content class

1.5.4 (June 9, 2023)
-------------------
- Fix #126: Fix category of a translatable string
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Gallery",
"description": "Adds galleries to Spaces and profiles.",
"keywords": ["gallery", "photo", "organisation"],
"version": "1.5.4",
"version": "1.5.5",
"humhub": {
"minVersion": "1.14"
},
Expand Down
Loading