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.
--- /dev/null
+<?php
+
+// Warning: Don't change this file! It only holds the default config values for this addon.
+// Instead overwrite these config values in config/addon.config.php in your Friendica directory
+
+return [
+ 'testdrive' => [
+ // 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,
+ ],
+];
+++ /dev/null
-<?php return <<<INI
-
-; Warning: Don't change this file! It only holds the default config values for this addon.
-; Instead overwrite these config values in config/addon.ini.php in your Friendica directory
-
-[testdrive]
-; expiredays (Integer)
-; When an account is created on the site, it is given a hard expiration date of this many days.
-expiredays =
-
-INI;
-//Keep this line
\ No newline at end of file
function testdrive_load_config(App $a)
{
- $a->loadConfigFile(__DIR__. '/config/testdrive.ini.php');
+ $a->loadConfigFile(__DIR__ . '/config/testdrive.config.php');
}
function testdrive_globaldir_update($a,&$b) {