mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 00:53:41 +00:00
add __FILE__
This commit is contained in:
parent
95e075865f
commit
6150bf9713
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue