X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=piwik%2Fpiwik.php;fp=piwik%2Fpiwik.php;h=3501b2c8c7a040df36776ed4f21dab4b0460d154;hb=c12542ef963a841236ebb0b0ff6ab77c53abcb5e;hp=a0dd1c257c7f15d663c3ba9a796517289d302ba2;hpb=75f47b74d2295f82fa28abe06a3d18662cc42c5f;p=friendica-addons.git diff --git a/piwik/piwik.php b/piwik/piwik.php index a0dd1c25..3501b2c8 100755 --- a/piwik/piwik.php +++ b/piwik/piwik.php @@ -84,16 +84,8 @@ function piwik_analytics($a,&$b) { } } function piwik_plugin_admin (&$a, &$o) { -# $t = file_get_contents( dirname(__file__)."/admin.tpl"); $t = get_markup_template( "admin.tpl", "addon/piwik/" ); - - $includes = array( - '$field_input' => 'field_input.tpl', - '$field_checkbox' => 'field_select.tpl', - ); - $includes = set_template_includes($a->theme['template_engine'], $includes); - - $o = replace_macros( $t, $includes + array( + $o = replace_macros( $t, array( '$submit' => t('Submit'), '$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)')), '$siteid' => array('siteid', t('Site ID'), get_config('piwik','siteid' ), ''),