Skip to content

Commit

Permalink
Merge pull request #65 from funktechno/f/synfony
Browse files Browse the repository at this point in the history
F/synfony
  • Loading branch information
lastlink authored Jul 19, 2024
2 parents 21e4de4 + faf4beb commit d190b14
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
Version 0.3.3
Improvements:

* synfony deprecation fix
* public wiki link to board
* added Ukrainian translation

Bug fixes:

* Fix https://github.com/funktechno/kanboard-plugin-wiki/issues/60
* Fix https://github.com/funktechno/kanboard-plugin-wiki/issues/56
* Fix `'max_size' => get_upload_max_size(),`

Expand Down
13 changes: 10 additions & 3 deletions Model/WikiEventJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ public function execute($title, $projectId, $wikiPage, $eventName)
->buildEventWiki($wikiPage);

if ($event !== null) {
$this->dispatcher->dispatch($eventName, $event);
if (APP_VERSION < '1.2.31') {
$this->dispatcher->dispatch($eventName, $event);
} else {
$this->dispatcher->dispatch($event, $eventName);
}

// if ($eventName === Wiki::EVENT_CREATE) {
// $userMentionJob = $this->userMentionJob->withParams($event['comment']['comment'], Wiki::EVENT_USER_MENTION, $event);
Expand All @@ -55,8 +59,11 @@ public function executeWithId($wikiPageId, $eventName)
->buildEvent();

if ($event !== null) {
$this->dispatcher->dispatch($eventName, $event);

if (APP_VERSION < '1.2.31') {
$this->dispatcher->dispatch($eventName, $event);
} else {
$this->dispatcher->dispatch($event, $eventName);
}
// if ($eventName === Wiki::EVENT_CREATE) {
// $userMentionJob = $this->userMentionJob->withParams($event['comment']['comment'], Wiki::EVENT_USER_MENTION, $event);
// $this->queueManager->push($userMentionJob);
Expand Down

0 comments on commit d190b14

Please sign in to comment.