[various] Remove config/addon.config.php in favor of per-addon configuration file

This commit is contained in:
Hypolite Petovan 2022-11-20 11:43:42 -05:00
parent 5b25b03ea3
commit 46d4d0b51e
29 changed files with 137 additions and 206 deletions

View file

@ -6,12 +6,14 @@ 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,
],
return [
'testdrive' => [
'expiredays' => 30,
],
];
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.
Set this in your `config/testdrive.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.
Expiration is final.

View file

@ -1,7 +1,7 @@
<?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
// Instead, copy this file to config/testdrive.config.php in your Friendica directory and set the correct values there
return [
'testdrive' => [