mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 07:01:39 +08:00
Merge branch 'master' into 1236-database-changes
This commit is contained in:
commit
54678e8d5c
2
js/dist/forum.js
vendored
2
js/dist/forum.js
vendored
File diff suppressed because one or more lines are too long
2
js/dist/forum.js.map
vendored
2
js/dist/forum.js.map
vendored
File diff suppressed because one or more lines are too long
@ -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(),
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user