From 6150bf97134cd56f8f29cabe0a7e8206b303304a Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Mon, 22 Apr 2019 10:49:40 +0200 Subject: [PATCH] add __FILE__ --- blockbot/blockbot.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blockbot/blockbot.php b/blockbot/blockbot.php index 6e4bb5ff..30ecc3a6 100644 --- a/blockbot/blockbot.php +++ b/blockbot/blockbot.php @@ -15,12 +15,12 @@ use Jaybizzle\CrawlerDetect\CrawlerDetect; require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php'; function blockbot_install() { - Hook::register('init_1', 'addon/blockbot/blockbot.php', 'blockbot_init_1'); + Hook::register('init_1', __FILE__, 'blockbot_init_1'); } function blockbot_uninstall() { - Hook::unregister('init_1', 'addon/blockbot/blockbot.php', 'blockbot_init_1'); + Hook::unregister('init_1', __FILE__, 'blockbot_init_1'); } function blockbot_init_1(App $a) {