X-Git-Url: https://git.mxchange.org/?p=friendica-addons.git;a=blobdiff_plain;f=piwik%2Fpiwik.php;h=326b931f56d67b3cd2acdc555d7abe2808715dfe;hp=ddba2dd91dd67702fff6f722f9844eb7b56bf3ba;hb=c71f7b0e1a7bb5ca88347b295dd3a4cc3106c5a9;hpb=0afd633346b517894ff8e92c705bd5d052dd06a2;ds=sidebyside diff --git a/piwik/piwik.php b/piwik/piwik.php index ddba2dd9..326b931f 100644 --- a/piwik/piwik.php +++ b/piwik/piwik.php @@ -1,13 +1,13 @@ * Author: Klaus Weidenbach */ -/* Piwik Analytics Plugin for Friendica +/* Piwik Analytics Addon for Friendica * * Author: Tobias Diekershoff * tobias.diekershoff@gmx.net @@ -35,19 +35,19 @@ use Friendica\Core\Config; function piwik_install() { Addon::registerHook('page_end', 'addon/piwik/piwik.php', 'piwik_analytics'); - logger("installed piwik plugin"); + logger("installed piwik addon"); } function piwik_uninstall() { Addon::unregisterHook('page_end', 'addon/piwik/piwik.php', 'piwik_analytics'); - logger("uninstalled piwik plugin"); + logger("uninstalled piwik addon"); } function piwik_analytics($a,&$b) { /* - * styling of every HTML block added by this plugin is done in the + * styling of every HTML block added by this addon is done in the * associated CSS file. We just have to tell Friendica to get it * into the page header. */ @@ -85,7 +85,7 @@ function piwik_analytics($a,&$b) { $b .= ""; } } -function piwik_plugin_admin (&$a, &$o) { +function piwik_addon_admin (&$a, &$o) { $t = get_markup_template( "admin.tpl", "addon/piwik/" ); $o = replace_macros( $t, [ '$submit' => t('Save Settings'), @@ -95,7 +95,7 @@ function piwik_plugin_admin (&$a, &$o) { '$async' => ['async', t('Asynchronous tracking'), Config::get('piwik','async' ), ''], ]); } -function piwik_plugin_admin_post (&$a) { +function piwik_addon_admin_post (&$a) { $url = ((x($_POST, 'baseurl')) ? notags(trim($_POST['baseurl'])) : ''); $id = ((x($_POST, 'siteid')) ? trim($_POST['siteid']) : ''); $optout = ((x($_POST, 'optout')) ? trim($_POST['optout']) : '');