]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/PiwikAnalytics/PiwikAnalyticsPlugin.php
fixed parser error (opps)
[quix0rs-gnu-social.git] / plugins / PiwikAnalytics / PiwikAnalyticsPlugin.php
index 2c8558671570a2c8d8893de2317dbf1c6ec47d75..924e36c264c1f370cd9b0b53743b0a9ee424a7ee 100644 (file)
@@ -33,7 +33,7 @@ if (!defined('STATUSNET')) {
 }
 
 /**
- * Plugin to use Piwik Analytics (based on the Google Analytics plugin by Evan)
+ * Plugin to use Piwik Analytics (based on the Analytics plugin by Evan)
  *
  * This plugin will spoot out the correct JavaScript spell to invoke
  * Piwik Analytics on a page.
@@ -51,6 +51,8 @@ if (!defined('STATUSNET')) {
  */
 class PiwikAnalyticsPlugin extends Plugin
 {
+    const PLUGIN_VERSION = '2.0.0';
+
     /** the base of your Piwik installation */
     public $piwikroot = null;
     /** the Piwik Id of your statusnet installation */
@@ -103,12 +105,12 @@ ENDOFPIWIK;
         return true;
     }
 
-    function onPluginVersion(&$versions)
+    function onPluginVersion(array &$versions)
     {
         $versions[] = array('name' => 'PiwikAnalytics',
-                            'version' => STATUSNET_VERSION,
+                            'version' => self::PLUGIN_VERSION,
                             'author' => 'Tobias Diekershoff, Evan Prodromou',
-                            'homepage' => 'http://status.net/wiki/Plugin:Piwik',
+                            'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/Piwik',
                             'rawdescription' =>
                             // TRANS: Plugin description.
                             _m('Use <a href="http://piwik.org/">Piwik</a> Open Source web analytics software.'));