Merge pull request #361 from tobiasd/20160728-piwik
Piwik addon, baseurl as variable name has problems with Friendica
This commit is contained in:
commit
bf7922d05e
|
@ -2,7 +2,7 @@
|
|||
/**
|
||||
* Name: Piwik Analytics
|
||||
* Description: Piwik Analytics Plugin for Friendica
|
||||
* Version: 1.2
|
||||
* Version: 1.3
|
||||
* Author: Tobias Diekershoff <https://f.diekershoff.de/profile/tobias>
|
||||
* Author: Klaus Weidenbach
|
||||
*/
|
||||
|
@ -87,7 +87,7 @@ function piwik_plugin_admin (&$a, &$o) {
|
|||
$t = get_markup_template( "admin.tpl", "addon/piwik/" );
|
||||
$o = replace_macros( $t, array(
|
||||
'$submit' => t('Save Settings'),
|
||||
'$baseurl' => array('baseurl', t('Piwik Base URL'), get_config('piwik','baseurl' ), t('Absolute path to your Piwik installation. (without protocol (http/s), with trailing slash)')),
|
||||
'$piwikbaseurl' => array('baseurl', t('Piwik Base URL'), get_config('piwik','baseurl' ), t('Absolute path to your Piwik installation. (without protocol (http/s), with trailing slash)')),
|
||||
'$siteid' => array('siteid', t('Site ID'), get_config('piwik','siteid' ), ''),
|
||||
'$optout' => array('optout', t('Show opt-out cookie link?'), get_config('piwik','optout' ), ''),
|
||||
'$async' => array('async', t('Asynchronous tracking'), get_config('piwik','async' ), ''),
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{include file="field_input.tpl" field=$baseurl}}
|
||||
{{include file="field_input.tpl" field=$piwikbaseurl}}
|
||||
{{include file="field_input.tpl" field=$siteid}}
|
||||
{{include file="field_checkbox.tpl" field=$optout}}
|
||||
{{include file="field_checkbox.tpl" field=$async}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user