mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-05 17:42:54 +00:00
[testdrive] Update config file style/name
This commit is contained in:
parent
d27ac641fc
commit
336276727f
4 changed files with 17 additions and 16 deletions
|
@ -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.
|
||||
|
|
12
testdrive/config/testdrive.config.php
Normal file
12
testdrive/config/testdrive.config.php
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?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,
|
||||
],
|
||||
];
|
|
@ -1,12 +0,0 @@
|
|||
<?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
|
|
@ -37,7 +37,7 @@ function testdrive_uninstall() {
|
|||
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue