]> git.mxchange.org Git - friendica-addons.git/commitdiff
add __FILE__
authorPhilipp Holzer <admin@philipp.info>
Mon, 22 Apr 2019 08:49:40 +0000 (10:49 +0200)
committerPhilipp Holzer <admin@philipp.info>
Mon, 22 Apr 2019 08:49:40 +0000 (10:49 +0200)
blockbot/blockbot.php

index 6e4bb5ffd6230ee500b50e61cb96e3da2b9bcbb8..30ecc3a6e808b640956c773c90032398934f4811 100644 (file)
@@ -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) {