From 336276727f68a7c0cab469452f321dc990b44bad Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 25 Nov 2018 02:16:20 -0500 Subject: [PATCH] [testdrive] Update config file style/name --- testdrive/README.md | 7 ++++--- testdrive/config/testdrive.config.php | 12 ++++++++++++ testdrive/config/testdrive.ini.php | 12 ------------ testdrive/testdrive.php | 2 +- 4 files changed, 17 insertions(+), 16 deletions(-) create mode 100644 testdrive/config/testdrive.config.php delete mode 100644 testdrive/config/testdrive.ini.php 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) {