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
path: root/core
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2015-10-12 14:58:35 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-10-12 14:58:35 +0300
commitb7028602859c1438f0eea8f8293f813381826227 (patch)
tree8241cc43cce31ed60941bb9ed700728bc1aabb6e /core
parentf6f444ec6a9a2af341812d460c97c189cb5ee04e (diff)
make sure to remove no longer needed plugins
Diffstat (limited to 'core')
-rw-r--r--core/Updates/2.15.0-b20.php42
-rw-r--r--core/Version.php2
2 files changed, 43 insertions, 1 deletions
diff --git a/core/Updates/2.15.0-b20.php b/core/Updates/2.15.0-b20.php
new file mode 100644
index 0000000000..79b4703f1b
--- /dev/null
+++ b/core/Updates/2.15.0-b20.php
@@ -0,0 +1,42 @@
+<?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\Plugin;
+use Piwik\Updater;
+use Piwik\Updates;
+
+/**
+ * Update for version 2.15.0-b20.
+ */
+class Updates_2_15_0_b20 extends Updates
+{
+
+ /**
+ * Perform the incremental version update.
+ *
+ * This method should preform all updating logic. If you define queries in an overridden `getMigrationQueries()`
+ * method, you must call {@link Updater::executeMigrationQueries()} here.
+ *
+ * See {@link Updates} for an example.
+ *
+ * @param Updater $updater
+ */
+ public function doUpdate(Updater $updater)
+ {
+ $this->makeSurePluginIsRemovedFromFilesystem('ZenMode');
+ $this->makeSurePluginIsRemovedFromFilesystem('LeftMenu');
+ }
+
+ private function makeSurePluginIsRemovedFromFilesystem($plugin)
+ {
+ Plugin\Manager::deletePluginFromFilesystem($plugin);
+ }
+}
diff --git a/core/Version.php b/core/Version.php
index e3cbcf0817..8e04405368 100644
--- a/core/Version.php
+++ b/core/Version.php
@@ -20,7 +20,7 @@ final class Version
* The current Piwik version.
* @var string
*/
- const VERSION = '2.15.0-b19';
+ const VERSION = '2.15.0-b20';
public function isStableVersion($version)
{