From 47bd2987d4a31b50348101fe8894422967175b05 Mon Sep 17 00:00:00 2001
From: sgiehl <stefan@piwik.org>
Date: Sun, 7 Jun 2015 21:17:01 +0200
Subject: [PATCH] use plugin.json instead of getInformation() method for
 DevicesDetection plugin

---
 plugins/DevicesDetection/DevicesDetection.php | 14 --------------
 plugins/DevicesDetection/plugin.json          | 10 ++++++++++
 2 files changed, 10 insertions(+), 14 deletions(-)
 create mode 100644 plugins/DevicesDetection/plugin.json

diff --git a/plugins/DevicesDetection/DevicesDetection.php b/plugins/DevicesDetection/DevicesDetection.php
index 6b04b5cf38..88478e6ff6 100644
--- a/plugins/DevicesDetection/DevicesDetection.php
+++ b/plugins/DevicesDetection/DevicesDetection.php
@@ -17,20 +17,6 @@ require_once PIWIK_INCLUDE_PATH . '/plugins/DevicesDetection/functions.php';
 
 class DevicesDetection extends \Piwik\Plugin
 {
-    /**
-     * @see Piwik\Plugin::getInformation
-     */
-    public function getInformation()
-    {
-        return array(
-            'description'      => Piwik::translate("DevicesDetection_PluginDescription"),
-            'authors'          => array(array('name' => 'Piwik PRO', 'homepage' => 'http://piwik.pro')),
-            'version'          => '1.14',
-            'license'          => 'GPL v3+',
-            'license_homepage' => 'http://www.gnu.org/licenses/gpl.html'
-        );
-    }
-
     /**
      * @see Piwik\Plugin::getListHooksRegistered
      */
diff --git a/plugins/DevicesDetection/plugin.json b/plugins/DevicesDetection/plugin.json
new file mode 100644
index 0000000000..f9d816466b
--- /dev/null
+++ b/plugins/DevicesDetection/plugin.json
@@ -0,0 +1,10 @@
+{
+  "name": "DevicesDetection",
+  "version": "1.14",
+  "authors": [
+    {
+      "name": "Piwik PRO",
+      "homepage": "http://piwik.pro"
+    }
+  ]
+}
-- 
GitLab