Browse Source

Piwik addon, baseurl as variable name has problems with Friendica

pull/361/head
Tobias Diekershoff 5 years ago
parent
commit
12777e0a87
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      piwik/piwik.php
  2. +1
    -1
      piwik/templates/admin.tpl

+ 2
- 2
piwik/piwik.php View File

@ -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
- 1
piwik/templates/admin.tpl View File

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