Piwik addon, baseurl as variable name has problems with Friendica

pull/361/head
Tobias Diekershoff 2016-07-28 16:32:05 +02:00
parent 9993d978bd
commit 12777e0a87
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
/** /**
* Name: Piwik Analytics * Name: Piwik Analytics
* Description: Piwik Analytics Plugin for Friendica * Description: Piwik Analytics Plugin for Friendica
* Version: 1.2 * Version: 1.3
* Author: Tobias Diekershoff <https://f.diekershoff.de/profile/tobias> * Author: Tobias Diekershoff <https://f.diekershoff.de/profile/tobias>
* Author: Klaus Weidenbach * Author: Klaus Weidenbach
*/ */
@ -87,7 +87,7 @@ function piwik_plugin_admin (&$a, &$o) {
$t = get_markup_template( "admin.tpl", "addon/piwik/" ); $t = get_markup_template( "admin.tpl", "addon/piwik/" );
$o = replace_macros( $t, array( $o = replace_macros( $t, array(
'$submit' => t('Save Settings'), '$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' ), ''), '$siteid' => array('siteid', t('Site ID'), get_config('piwik','siteid' ), ''),
'$optout' => array('optout', t('Show opt-out cookie link?'), get_config('piwik','optout' ), ''), '$optout' => array('optout', t('Show opt-out cookie link?'), get_config('piwik','optout' ), ''),
'$async' => array('async', t('Asynchronous tracking'), get_config('piwik','async' ), ''), '$async' => array('async', t('Asynchronous tracking'), get_config('piwik','async' ), ''),

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_input.tpl" field=$siteid}}
{{include file="field_checkbox.tpl" field=$optout}} {{include file="field_checkbox.tpl" field=$optout}}
{{include file="field_checkbox.tpl" field=$async}} {{include file="field_checkbox.tpl" field=$async}}