mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-10 10:28:50 +00:00
Move addon-specific config to config/addon.ini.php
This commit is contained in:
parent
7ee6c3a20c
commit
6c443aeaf0
28 changed files with 30 additions and 30 deletions
|
@ -27,7 +27,7 @@ Open the config/local.ini.php file and add "piwik" to the list of activated addo
|
|||
[system]
|
||||
addon = ...,piwik
|
||||
|
||||
You can change 4 more configuration variables for the addon:
|
||||
You can change 4 more configuration variables for the addon in the config/addon.ini.php file:
|
||||
|
||||
[piwik]
|
||||
baseurl = example.com/piwik/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?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/local.ini.php in your Friendica directory
|
||||
; Instead overwrite these config values in config/addon.ini.php in your Friendica directory
|
||||
|
||||
[piwik]
|
||||
; baseurl (String)
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* 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/local.ini.php
|
||||
* in case you don't use this add the following lines to your config/addon.ini.php
|
||||
* file:
|
||||
*
|
||||
* [piwik]
|
||||
|
@ -63,7 +63,7 @@ function piwik_analytics($a,&$b) {
|
|||
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . $a->get_baseurl() . '/addon/piwik/piwik.css' . '" media="all" />';
|
||||
|
||||
/*
|
||||
* Get the configuration variables from the config/local.ini.php file.
|
||||
* Get the configuration variables from the config/addon.ini.php file.
|
||||
*/
|
||||
$baseurl = Config::get('piwik', 'baseurl');
|
||||
$siteid = Config::get('piwik', 'siteid');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue