Merge branch 'master' into 1236-database-changes

This commit is contained in:
Daniël Klabbers 2018-06-27 21:23:52 +02:00
commit 54678e8d5c
No known key found for this signature in database
GPG Key ID: 823B3D5DDF3FBAB6
5 changed files with 11 additions and 5 deletions

2
js/dist/forum.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -80,7 +80,7 @@ export default class CommentPost extends Post {
const post = this.props.post;
const attrs = super.attrs();
attrs.className += ' '+classList({
attrs.className = (attrs.className || '') + ' ' + classList({
'CommentPost': true,
'Post--hidden': post.isHidden(),
'Post--edited': post.isEdited(),

View File

@ -18,7 +18,7 @@ export default class EventPost extends Post {
attrs() {
const attrs = super.attrs();
attrs.className += ' EventPost ' + ucfirst(this.props.post.contentType()) + 'Post';
attrs.className = (attrs.className || '') + ' EventPost ' + ucfirst(this.props.post.contentType()) + 'Post';
return attrs;
}

View File

@ -119,7 +119,13 @@ class Extension implements Arrayable
return;
}
$extenders = array_flatten((array) require $bootstrapper);
$extenders = require $bootstrapper;
if (! is_array($extenders)) {
$extenders = [$extenders];
}
$extenders = array_flatten($extenders);
foreach ($extenders as $extender) {
// If an extension has not yet switched to the new bootstrap.php