mirror of
https://github.com/humhub/humhub.git
synced 2025-01-29 12:28:06 +01:00
Update Events.php
This commit is contained in:
parent
8ffb16acef
commit
f06ed03430
@ -8,9 +8,9 @@
|
||||
|
||||
namespace humhub\modules\topic;
|
||||
|
||||
use Yii;
|
||||
use humhub\modules\topic\models\Topic;
|
||||
use humhub\modules\topic\widgets\ContentTopicButton;
|
||||
use Yii;
|
||||
use yii\base\BaseObject;
|
||||
|
||||
class Events extends BaseObject
|
||||
@ -19,7 +19,7 @@ class Events extends BaseObject
|
||||
{
|
||||
$record = $event->sender->object;
|
||||
|
||||
if($record->content->canWrite()) {
|
||||
if ($record->content->canWrite()) {
|
||||
$event->sender->addWidget(ContentTopicButton::class, ['record' => $record], ['sortOrder' => 240]);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user