From: Hypolite Petovan Date: Sun, 25 Nov 2018 07:16:20 +0000 (-0500) Subject: [testdrive] Update config file style/name X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=336276727f68a7c0cab469452f321dc990b44bad;p=friendica-addons.git [testdrive] Update config file style/name --- diff --git a/testdrive/README.md b/testdrive/README.md index ad9414eb..59512aef 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 00000000..c10acf82 --- /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 8d3f8632..00000000 --- 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) {