mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
[testdrive] Add addon config
- Update mentions of .htconfig.php
This commit is contained in:
parent
9cc5f29dad
commit
9f0a441fe4
3 changed files with 28 additions and 10 deletions
|
@ -14,6 +14,7 @@ use Friendica\Util\DateTimeFormat;
|
|||
|
||||
function testdrive_install() {
|
||||
|
||||
Addon::registerHook('load_config', 'addon/testdrive/testdrive.php', 'testdrive_load_config');
|
||||
Addon::registerHook('register_account', 'addon/testdrive/testdrive.php', 'testdrive_register_account');
|
||||
Addon::registerHook('cron', 'addon/testdrive/testdrive.php', 'testdrive_cron');
|
||||
Addon::registerHook('enotify','addon/testdrive/testdrive.php', 'testdrive_enotify');
|
||||
|
@ -24,6 +25,7 @@ function testdrive_install() {
|
|||
|
||||
function testdrive_uninstall() {
|
||||
|
||||
Addon::unregisterHook('load_config', 'addon/testdrive/testdrive.php', 'testdrive_load_config');
|
||||
Addon::unregisterHook('register_account', 'addon/testdrive/testdrive.php', 'testdrive_register_account');
|
||||
Addon::unregisterHook('cron', 'addon/testdrive/testdrive.php', 'testdrive_cron');
|
||||
Addon::unregisterHook('enotify','addon/testdrive/testdrive.php', 'testdrive_enotify');
|
||||
|
@ -31,6 +33,11 @@ function testdrive_uninstall() {
|
|||
|
||||
}
|
||||
|
||||
function testdrive_load_config(\Friendica\App $a)
|
||||
{
|
||||
$a->loadConfigFile(__DIR__. '/config/testdrive.ini.php');
|
||||
}
|
||||
|
||||
function testdrive_globaldir_update($a,&$b) {
|
||||
$b['url'] = '';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue