[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

@ -16,14 +16,16 @@ Simply fill in the fields in the impressium settings page in the addons area of
Manual Configuration
--------------------
If you for any reason you prefer to use a configuration file instead, you can set the following variables in the `config/addon.config.php` file
If you for any reason you prefer to use a configuration file instead, you can set the following variables in the `config/impressum.config.php` file
'impressum' => [
'owner' => '', This is the Name of the Operator
'ownerprofile' => '', This is an optional Friendica account where the above owner name will link to
'email' => '', A contact email address (optional)
Will be displayed slightly obfuscated as name(at)example(dot)com
'postal' => '', Should contain a postal address where you can be reached at (optional)
'notes' => '', Additional informations that should be displayed in the Impressum block
'footer_text' => '', Text that will be displayed at the bottom of the pages.
],
return [
'impressum' => [
'owner' => '', // This is the Name of the Operator
'ownerprofile' => '', // This is an optional Friendica account where the above owner name will link to
'email' => '', // A contact email address (optional)
// Will be displayed slightly obfuscated as name(at)example(dot)com
'postal' => '', // Should contain a postal address where you can be reached at (optional)
'notes' => '', // Additional informations that should be displayed in the Impressum block
'footer_text' => '', // Text that will be displayed at the bottom of the pages.
],
];

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/impressum.config.php in your Friendica directory and set the correct values there
return [
'impressum' => [