Browse Source

[testdrive] Update config file style/name

pull/778/head
Hypolite Petovan 3 years ago
parent
commit
336276727f
4 changed files with 17 additions and 16 deletions
  1. +4
    -3
      testdrive/README.md
  2. +12
    -0
      testdrive/config/testdrive.config.php
  3. +0
    -12
      testdrive/config/testdrive.ini.php
  4. +1
    -1
      testdrive/testdrive.php

+ 4
- 3
testdrive/README.md View File

@ -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
- 0
testdrive/config/testdrive.config.php View 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,
],
];

+ 0
- 12
testdrive/config/testdrive.ini.php View File

@ -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

+ 1
- 1
testdrive/testdrive.php View File

@ -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…
Cancel
Save