mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-10 18:38:49 +00:00
[various] Remove config/addon.config.php in favor of per-addon configuration file
This commit is contained in:
parent
5b25b03ea3
commit
46d4d0b51e
29 changed files with 137 additions and 206 deletions
|
@ -16,14 +16,17 @@
|
|||
*
|
||||
* Configuration:
|
||||
* Use the administration panel to configure the Piwik tracking addon, or
|
||||
* in case you don't use this add the following lines to your config/addon.config.php
|
||||
* in case you don't use this, add the following lines to your config/piwik.config.php
|
||||
* file:
|
||||
*
|
||||
* [piwik]
|
||||
* baseurl = example.com/piwik/
|
||||
* sideid = 1
|
||||
* optout = true ;set to false to disable
|
||||
* async = false ;set to true to enable
|
||||
* return [
|
||||
* 'piwik' => [
|
||||
* 'baseurl' => '',
|
||||
* 'sideid' => '',
|
||||
* 'optout' => true,
|
||||
* 'async' => false,
|
||||
* ],
|
||||
* ];
|
||||
*
|
||||
* Change the siteid to the ID that the Piwik tracker for your Friendica
|
||||
* installation has. Alter the baseurl to fit your needs, don't care
|
||||
|
@ -60,7 +63,7 @@ function piwik_analytics(App $a, string &$b)
|
|||
DI::page()['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . DI::baseUrl()->get() . '/addon/piwik/piwik.css' . '" media="all" />';
|
||||
|
||||
/*
|
||||
* Get the configuration variables from the config/addon.config.php file.
|
||||
* Get the configuration values.
|
||||
*/
|
||||
$baseurl = DI::config()->get('piwik', 'baseurl');
|
||||
$siteid = DI::config()->get('piwik', 'siteid');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue