Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-07-11 05:28:06 +0300
committerdiosmosis <benaka@piwik.pro>2015-08-06 17:37:59 +0300
commit3f0511c41e844069723e309bdef0087b39aa5242 (patch)
treef370c06fddffcc88059d88ff41c668c5189fd659 /core/Updates
parentba2a639dca1197a87eab02479e1f7d3ffb511544 (diff)
Add 2.15.0 update to enable Heartbeat plugin.
Diffstat (limited to 'core/Updates')
-rw-r--r--core/Updates/2.15.0.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/core/Updates/2.15.0.php b/core/Updates/2.15.0.php
new file mode 100644
index 0000000000..cbe67bd763
--- /dev/null
+++ b/core/Updates/2.15.0.php
@@ -0,0 +1,25 @@
+<?php
+/**
+ * Piwik - free/libre analytics platform
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
+ */
+
+namespace Piwik\Updates;
+
+use Piwik\Updater;
+use Piwik\Updates;
+
+class Updates_2_15_0 extends Updates
+{
+ public function doUpdate(Updater $updater)
+ {
+ $pluginManager = \Piwik\Plugin\Manager::getInstance();
+
+ try {
+ $pluginManager->activatePlugin('Heartbeat');
+ } catch (\Exception $e) {
+ }
+ }
+} \ No newline at end of file