From: friendica Date: Mon, 21 May 2012 23:41:44 +0000 (-0700) Subject: globaldir submission blocking X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=94e6820e85ee098e2eb771a1893f14e3d1e6af92;p=friendica-addons.git globaldir submission blocking --- diff --git a/testdrive.tgz b/testdrive.tgz index 3369481c..dac0ff78 100755 Binary files a/testdrive.tgz and b/testdrive.tgz differ diff --git a/testdrive/testdrive.php b/testdrive/testdrive.php index 909f4338..968aa834 100644 --- a/testdrive/testdrive.php +++ b/testdrive/testdrive.php @@ -15,6 +15,7 @@ function testdrive_install() { register_hook('register_account', 'addon/testdrive/testdrive.php', 'testdrive_register_account'); register_hook('cron', 'addon/testdrive/testdrive.php', 'testdrive_cron'); register_hook('enotify','addon/testdrive/testdrive.php', 'testdrive_enotify'); + register_hook('globaldir_update','addon/testdrive/testdrive.php', 'testdrive_globaldir_update'); } @@ -24,9 +25,14 @@ function testdrive_uninstall() { unregister_hook('register_account', 'addon/testdrive/testdrive.php', 'testdrive_register_account'); unregister_hook('cron', 'addon/testdrive/testdrive.php', 'testdrive_cron'); unregister_hook('enotify','addon/testdrive/testdrive.php', 'testdrive_enotify'); + unregister_hook('globaldir_update','addon/testdrive/testdrive.php', 'testdrive_globaldir_update'); } +function testdrive_globaldir_update($a,&$b) { + $b['url'] = ''; +} + function testdrive_register_account($a,$b) { $uid = $b;