Skip to content

Commit 34df267

Browse files
committed
chore: removed hook helper for older kirby versions
1 parent 4f6ab8e commit 34df267

File tree

2 files changed

+1
-24
lines changed

2 files changed

+1
-24
lines changed

index.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Kirby;
66
use Kirby\Http\Response;
77

8-
98
@require_once __DIR__ . '/lib/indieweb-comments.php';
109
@include_once __DIR__ . '/vendor/autoload.php';
1110

@@ -59,8 +58,7 @@
5958
'published' => $receiver->getPubDate($response),
6059
];
6160

62-
$hookHelper = new HookHelper();
63-
$hookHelper->triggerHook('indieConnector.webmention.received', ['webmention' => $webmention, 'targetPage' => $targetPage]);
61+
kirby()->trigger('indieConnector.webmention.received', ['webmention' => $webmention, 'targetPage' => $targetPage]);
6462

6563
if (option('mauricerenck.indieConnector.stats', false)) {
6664
$stats = new WebmentionStats();

utils/hookHelper.php

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)