Update Events.php

This commit is contained in:
Carlos Ferreira 2018-07-15 23:44:12 +02:00 committed by GitHub
parent 8ffb16acef
commit f06ed03430
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]);
}
}