diff --git a/testdrive/README.md b/testdrive/README.md index ad9414eb5..59512aefd 100644 --- a/testdrive/README.md +++ b/testdrive/README.md @@ -6,10 +6,11 @@ Testdrive is a Friendica addon which implements automatic account expiration so When an account is created on the site, it is given a hard expiration date of - [testdrive] - expiredays = 30 + 'testdrive' => [ + 'expiredays' => 30, + ], -Set this in your config/addon.ini.php file to allow a 30 day test drive period. +Set this in your `config/addon.config.php` file to allow a 30 day test drive period. By default no expiration period is defined in case the addon is activated accidentally. There is no opportunity to extend an expired account using this addon. diff --git a/testdrive/config/testdrive.config.php b/testdrive/config/testdrive.config.php new file mode 100644 index 000000000..c10acf825 --- /dev/null +++ b/testdrive/config/testdrive.config.php @@ -0,0 +1,12 @@ + [ + // expiredays (Integer) + // When an account is created on the site, it is given a hard expiration date of this many days. 0 to disable. + 'expiredays' => 0, + ], +]; diff --git a/testdrive/config/testdrive.ini.php b/testdrive/config/testdrive.ini.php deleted file mode 100644 index 8d3f86322..000000000 --- a/testdrive/config/testdrive.ini.php +++ /dev/null @@ -1,12 +0,0 @@ -loadConfigFile(__DIR__. '/config/testdrive.ini.php'); + $a->loadConfigFile(__DIR__ . '/config/testdrive.config.php'); } function testdrive_globaldir_update($a,&$b) {