mirror of
https://github.com/flarum/core.git
synced 2025-08-06 08:27:42 +02:00
Merge branch 'master' into 1236-database-changes
This commit is contained in:
2
framework/core/js/dist/forum.js
vendored
2
framework/core/js/dist/forum.js
vendored
File diff suppressed because one or more lines are too long
2
framework/core/js/dist/forum.js.map
vendored
2
framework/core/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 post = this.props.post;
|
||||||
const attrs = super.attrs();
|
const attrs = super.attrs();
|
||||||
|
|
||||||
attrs.className += ' '+classList({
|
attrs.className = (attrs.className || '') + ' ' + classList({
|
||||||
'CommentPost': true,
|
'CommentPost': true,
|
||||||
'Post--hidden': post.isHidden(),
|
'Post--hidden': post.isHidden(),
|
||||||
'Post--edited': post.isEdited(),
|
'Post--edited': post.isEdited(),
|
||||||
|
@@ -18,7 +18,7 @@ export default class EventPost extends Post {
|
|||||||
attrs() {
|
attrs() {
|
||||||
const attrs = super.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;
|
return attrs;
|
||||||
}
|
}
|
||||||
|
@@ -119,7 +119,13 @@ class Extension implements Arrayable
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$extenders = array_flatten((array) require $bootstrapper);
|
$extenders = require $bootstrapper;
|
||||||
|
|
||||||
|
if (! is_array($extenders)) {
|
||||||
|
$extenders = [$extenders];
|
||||||
|
}
|
||||||
|
|
||||||
|
$extenders = array_flatten($extenders);
|
||||||
|
|
||||||
foreach ($extenders as $extender) {
|
foreach ($extenders as $extender) {
|
||||||
// If an extension has not yet switched to the new bootstrap.php
|
// If an extension has not yet switched to the new bootstrap.php
|
||||||
|
Reference in New Issue
Block a user